PathParser class final

Parse an SVG Path. The path syntax is specified at at https://www.w3.org/TR/2018/CR-SVG2-20181004/paths.html

Usage:

String src = "M 125,75 a100,50 0 0,1 100,50"
final PathBuilder builder = ...;
PathParser(builder, src).parse();
... do something with whatever builder produces ...

Constructors

PathParser(PathBuilder builder, String source)
Create a parser to parse source. It will call the appropriate methods on builder to build a result.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse() → void
Parse the string. On error, this throws a ParseError, but it leaves the path up to where the error occurred in builder.path. The error behavior specified in s. 9.5.4 of https://www.w3.org/TR/2018/CR-SVG2-20181004/paths.html can be had by catching the exception, reporting it to the user if appropriate, and rendering the partial path.
toString() String
A string representation of this object.
inherited

Operators

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