SvgDOM class

A document object model representing an asset that can be turned into a ScalableImage. Normally this is obtained by parsing an SVG XML file (or, internally, by parsing an Android AVD XML file). See also SVGDomManager.

Constructors

SvgDOM(SvgRoot root, Stylesheet stylesheet, double? width, double? height, int? tintColor, SITintMode? tintMode)

Properties

hashCode int
The hash code for this object.
no setterinherited
height double?
getter/setter pair
idLookup Map<String, SvgNode>
A table used to look up nodes by their string ID. Note that this table is not rebuilt automatically if the SvgDOM is modified programmatically. See resetIDLookup.
no setter
root SvgRoot
The root node of the DOM.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stylesheet Stylesheet
The stylesheet that will be applied when a ScalableImage is created. See https://www.w3.org/TR/2011/REC-SVG11-20110816/styling.html#StylingWithCSS .
getter/setter pair
tintColor int?
The RGB value of a tint that can be applied to the asset. This is not present in SVG; it comes from the Android Vector Drawable format.
getter/setter pair
tintMode SITintMode?
The drawing mode to be used when appying a tint. See tintColor.
getter/setter pair
width double?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetIDLookup() → void
Reset the idLookup table. If it is subsequently accessed, it will be rebuilt automatically, in an O(n) operation on the number of nodes in the DOM.
toString() String
Give a human-readable sketch of the contents of this SvgDOM. This might be useful for debugging and/or exploration.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited