SVG/src/avd/xml_parsers library

Constants

androidNS → const String
The AVD namespace.

Functions

getAttribute(List<XmlAttribute> attributes, String name, {String? def = '', String? namespace}) String?
A utility method for getting an XML attribute with a default value.
parseColor(String? colorString) Color?
Converts a SVG Color String (either a # prefixed color string or a named color) to a Color.
parseFill(List<XmlAttribute> el, Rect bounds) DrawablePaint?
Parses fill information to a DrawablePaint.
parseMiterLimit(List<XmlAttribute> el) double?
Parses AVD strokeMiterLimit to a double.
parsePathFillType(List<XmlAttribute> el) PathFillType
Turns a fillType into a PathFillType.
parseStroke(List<XmlAttribute> el, Rect bounds) DrawablePaint?
Parses an AVD stroke related attributes to a DrawablePaint.
parseStrokeCap(List<XmlAttribute> el) StrokeCap
Parses the strokeLineCap to a StrokeCap.
parseStrokeJoin(List<XmlAttribute> el) StrokeJoin
Parses AVD strokeLineJoin to a StrokeJoin.
parseTransform(List<XmlAttribute> el) Matrix4
Parses AVD transform related attributes to a Matrix4.
parseViewBox(List<XmlAttribute> el) DrawableViewport
Parses an AVD @android:viewportWidth and @android:viewportHeight attributes to a Rect.