SvgStringLoader class
- Inheritance
-
- Object
- BytesLoader
- SvgLoader<
void> - SvgStringLoader
Constructors
- SvgStringLoader(String _svg, {SvgTheme? theme, ColorMapper? colorMapper})
-
Creates an instance of SvgStringLoader.
const
Properties
- colorMapper → ColorMapper?
-
The ColorMapper used to transform colors from the SVG, if any.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → SvgTheme?
-
The theme to determine currentColor and font sizing attributes.
finalinherited
Methods
-
cacheKey(
BuildContext? context) → SvgCacheKey -
Create an object that can be used to uniquely identify this asset
and loader combination.
inherited
-
getTheme(
BuildContext? context) → SvgTheme -
Returns the SVG theme.
inherited
-
loadBytes(
BuildContext? context) → Future< ByteData> -
Loads the SVG bytes, utilizing caching to avoid unnecessary
repeated loads.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareMessage(
BuildContext? context) → Future< void> -
Prepares the message for SVG processing.
inherited
-
provideSvg(
void message) → String -
Provides the SVG string for loading.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override