Svg class
A utility class for decoding SVG data to a DrawableRoot or a PictureInfo.
These methods are used by SvgPicture, but can also be directly used e.g. to create a DrawableRoot you manipulate or render to your own Canvas. Access to this class is provided by the exported svg member.
Properties
- cacheColorFilterOverride ↔ bool?
-
A global override flag for SvgPicture.cacheColorFilter.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromSvgBytes(
Uint8List raw, String key, {SvgTheme theme = const SvgTheme()}) → Future< DrawableRoot> -
Produces a
Drawableroot
from a Uint8List of SVG byte data (assumes UTF8 encoding). -
fromSvgString(
String rawSvg, String key, {SvgTheme theme = const SvgTheme()}) → Future< DrawableRoot> - Creates a DrawableRoot from a string of SVG data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
svgPictureDecoder(
Uint8List raw, bool allowDrawingOutsideOfViewBox, ColorFilter? colorFilter, String key, {SvgTheme theme = const SvgTheme()}) → Future< PictureInfo> - Produces a PictureInfo from a Uint8List of SVG byte data (assumes UTF8 encoding).
-
svgPictureStringDecoder(
String raw, bool allowDrawingOutsideOfViewBox, ColorFilter? colorFilter, String key, {SvgTheme theme = const SvgTheme()}) → Future< PictureInfo> - Produces a PictureInfo from a String of SVG data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited