SvgProvider class

Provides SVG. Several constructors are provided for the various ways that SVG can be obtained:

Constructors

SvgProvider.asset(String name)
Obtains SVG from an AssetBundle using a key.
factory
SvgProvider.file(File file)
Obtains SVG from a File.
factory
SvgProvider.future(Future<DrawableRoot> svg)
Obtains SVG from a Future.
factory
SvgProvider.network(String src, [Client? client])
Obtains SVG from a URL. Requests are cached.
factory
SvgProvider.string(String svgString)
Obtains SVG from a String.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
svg Future<DrawableRoot>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve() Future<DrawableRoot>
toString() String
A string representation of this object.
inherited

Operators

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