SvgParser class

Parses a minimal subset of a SVG file and extracts all paths segments.

Constructors

SvgParser()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPathSegments(Path path, int index, double? strokeWidth, Color? color) → void
getPaths() → List<Path>
Returns extracted Path elements of parsed Svg
getPathSegments() → List<PathSegment>
Returns extracted PathSegment elements of parsed Svg
loadFromFile(String file) → Future<void>
Parses Svg from provided asset path
loadFromPaths(List<Path> paths) → void
loadFromString(String svgString) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseColor(String cStr) → Color
toString() → String
A string representation of this object.
inherited

Operators

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