SvgNetworkLoader class
- Inheritance
-
- Object
- BytesLoader
- SvgLoader<
Uint8List> - SvgNetworkLoader
Constructors
-
SvgNetworkLoader(String url, {Map<
String, String> ? headers, SvgTheme? theme, ColorMapper? colorMapper, Client? httpClient}) -
Creates an instance of SvgNetworkLoader for loading SVGs from a network.
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
-
headers
→ Map<
String, String> ? -
Optional HTTP headers to send with the request.
final
- 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
- url → String
-
The Uri-encoded resource address for the SVG.
final
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< Uint8List?> -
Prepares the message by fetching the SVG data from the network.
override
-
provideSvg(
Uint8List? message) → String -
Provides the SVG string from the loaded Uint8List.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override