SvgDOMManager class SVG DOM

Support for loading an SVG asset, manipulating it, and producing ScalableImage instances from the asset's current state. This is the entry point for use of the dom library.

Properties

dom SvgDOM
The DOM being managed. You can modify it before calling build.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build({bool last = false, void warnF(String)?, Color? currentColor}) ScalableImage
Create a ScalableImage from dom. The intended usage of this method is to create a ScalableImage after modifications have been made to dom, so that it can be displayed. Later, further modifications can be made, and a new ScalableImage can be produced by calling this method again. That new ScalableImage can replace the old one. This method produces the faster DAG (directed acyclic graph) representation of the ScalableImage, that is, not the compact representation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromStream(Stream<String> input, {List<Pattern> exportedIDs = const [], void warnF(String)?}) Future<SvgDOMManager>
Create a new manager to manage an SVG DOM created from the XML representation in the stream input.
fromString(String input, {List<Pattern> exportedIDs = const [], void warnF(String)?}) SvgDOMManager
Create a new manager to manage an SVG DOM created from the XML representation in input.