SvgDOMManager class
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
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 -
Give a human-readable sketch of the contents of our DOM. This might
be useful for debugging and/or exploration.
override
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
.