SvgProvider class
Provides SVG. Several constructors are provided for the various ways that SVG can be obtained:
- SvgProvider.string, for obtaining SVG from a String.
- SvgProvider.network, for obtaining SVG from a URL.
- SvgProvider.file, for obtaining SVG from a File.
- SvgProvider.asset, for obtaining SVG from an AssetBundle using a key.
- SvgProvider.future, for obtaining SVG from a Future.
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
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