SvgTheme class

A theme used when decoding an SVG picture.

Annotations

Constructors

SvgTheme({Color currentColor = const Color(0xFF000000), double fontSize = 14, double? xHeight})
Instantiates an SVG theme with the currentColor and fontSize.
const

Properties

currentColor Color
The default color applied to SVG elements that inherit the color property. See: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#currentcolor_keyword
final
fontSize double
The font size used when calculating em units of SVG elements. See: https://www.w3.org/TR/SVG11/coords.html#Units
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
xHeight double
The x-height (corpus size) of the font used when calculating ex units of SVG elements. Defaults to fontSize / 2 if not provided. See: https://www.w3.org/TR/SVG11/coords.html#Units, https://en.wikipedia.org/wiki/X-height
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toVgTheme() → SvgTheme
Creates a vg.SvgTheme from this.

Operators

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