2021年3月13日星期六

Customize closing Tag using Dart XML

      builder.element(                'mxCell'                ' '                'id= "${myId}"'                ' '                'value=""'                ' '                'style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;shape=${_myObjects[i]};fillColor=#F58534;gradientColor=none;"'                ' '                'vertex="1"'                ' '                'parent="1"', nest: () {              builder.element('mxGeometry'                  ' '                  'x= "${_myObjects[i + 1]}"'                  ' '                  'y= "${_myObjects[i + 2]}"'                  ' '                  'width= "${_myObjects[i + 3]}"'                  ' '                  'height= "${_myObjects[i + 4]}"'                  ' '                  'as="geometry"');            })  

Output

The closing tags includes the elements in the opening tag. I wan it to be just

Desired output

https://stackoverflow.com/questions/66620983/customize-closing-tag-using-dart-xml March 14, 2021 at 12:04PM

没有评论:

发表评论