tag property
Property that defines the screen overlay tag
according to its current
properties.
Example
ScreenOverlay screenOverlay = ScreenOverlay(
name: "Overlay",
this.icon = 'https://google.com/...',
overlayX = 0,
overlayY = 0,
screenX = 0,
screenY = 0,
sizeX = 0,
sizeY = 0,
)
screenOverlay.tag => '''
<ScreenOverlay>
<name>Overlay</name>
<Icon>
<href>https://google.com/...</href>
</Icon>
<overlayXY x="0" y="0" xunits="fraction" yunits="fraction"/>
<screenXY x="0" y="0" xunits="fraction" yunits="fraction"/>
<rotationXY x="0" y="0" xunits="fraction" yunits="fraction"/>
<size x="0" y="0" xunits="pixels" yunits="pixels"/>
</ScreenOverlay>
'''
Implementation
String get tag => '''
<ScreenOverlay>
<name>$name</name>
<Icon>
<href>$icon</href>
</Icon>
<overlayXY x="$overlayX" y="$overlayY" xunits="fraction" yunits="fraction"/>
<screenXY x="$screenX" y="$screenY" xunits="fraction" yunits="fraction"/>
<rotationXY x="0" y="0" xunits="fraction" yunits="fraction"/>
<size x="$sizeX" y="$sizeY" xunits="pixels" yunits="pixels"/>
v <description>
<![CDATA[
$content
]]>
</description>
<gx:balloonVisibility>1</gx:balloonVisibility>
</ScreenOverlay>
''';