AssetBundlePictureProvider class abstract
A subclass of PictureProvider that knows about AssetBundles.
This factors out the common logic of AssetBundle-based PictureProvider classes, simplifying what subclasses must implement to just obtainKey.
- Inheritance
-
- Object
- PictureProvider<
AssetBundlePictureKey> - AssetBundlePictureProvider
- Implementers
Constructors
-
AssetBundlePictureProvider(PictureInfoDecoderBuilder<
String> decoderBuilder, ColorFilter? colorFilter) - Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
Properties
- colorFilter → ColorFilter?
-
The color filter to apply to the picture, if any.
finalinherited
- currentColor ↔ Color?
-
The default color applied to SVG elements that inherit the color property.
getter/setter pairinherited-getteroverride-setter
-
decoder
↔ PictureInfoDecoder<
String> -
The decoder to use to turn a string into a PictureInfo object.
getter/setter pair
-
decoderBuilder
→ PictureInfoDecoderBuilder<
String> -
The decoder builder to build a decoder when currentColor changes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
load(
AssetBundlePictureKey key, {PictureErrorListener? onError}) → PictureStreamCompleter -
Converts a key into an PictureStreamCompleter, and begins fetching the
picture using
_loadAsync
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
obtainKey(
PictureConfiguration picture) → Future< AssetBundlePictureKey> -
Converts a pictureProvider's settings plus a pictureConfiguration to a key
that describes the precise picture to load.
inherited
-
resolve(
PictureConfiguration picture, {PictureErrorListener? onError}) → PictureStream -
Resolves this Picture provider using the given
configuration
, returning an PictureStream.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited