FilePicture class
Decodes the given File object as a picture, associating it with the given scale.
See also:
- SvgPicture.file for a shorthand of an SvgPicture widget backed by FilePicture.
- Inheritance
-
- Object
- PictureProvider<
FilePicture> - FilePicture
Constructors
-
FilePicture(PictureInfoDecoderBuilder<
Uint8List> decoderBuilder, File file, {ColorFilter? colorFilter}) - Creates an object that decodes a File as a picture.
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<
Uint8List> -
The PictureInfoDecoder to use for loading this picture.
getter/setter pair
-
decoderBuilder
→ PictureInfoDecoderBuilder<
Uint8List> -
The decoder builder to build a decoder when currentColor changes.
final
- file → File
-
The file to decode into a picture.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
load(
FilePicture key, {PictureErrorListener? onError}) → PictureStreamCompleter -
Converts a key into an PictureStreamCompleter, and begins fetching the
picture.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
obtainKey(
PictureConfiguration picture) → Future< FilePicture> -
Converts a pictureProvider's settings plus a pictureConfiguration to a key
that describes the precise picture to load.
override
-
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.
override
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override