SVG/src/svg/parsers library

Constants

transparentStroke → const DrawablePaint
A DrawablePaint with a transparent stroke.

Functions

affineMatrix(double a, double b, double c, double d, double e, double f) Matrix4
Creates a Matrix4 affine matrix.
createParagraph(String text, DrawableStyle style, DrawablePaint? foregroundOverride) Paragraph
Creates a Paragraph object using the specified text, style, and foregroundOverride.
isPercentage(String val) bool
Whether a string should be treated as a percentage (i.e. if it ends with a '%').
parseDecimalOrPercentage(String val, {double multiplier = 1.0}) double
Parses strings in the form of '1.0' or '100%'.
parsePercentage(String val, {double multiplier = 1.0}) double
Parses values in the form of '100%'.
parseRawFillRule(String? rawFillRule) PathFillType?
Parses a fill-rule attribute.
parseTextAnchor(String? raw) DrawableTextAnchorPosition?
Parses a text-anchor attribute.
parseTransform(String? transform) Matrix4?
Parses a SVG transform attribute into a Matrix4.
resolveImage(String href) Future<Image>
Resolves an image reference, potentially downloading it via HTTP.