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