Images class

Constructors

Images()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String name, Image image) → void
Path prefix to the project's directory with images.
clear(String name) → void
Removes the image name from the cache.
clearCache() → void
Removes all cached images.
decodeImageFromPixels(Uint8List pixels, int width, int height, {bool runAsWeb = false}) Future<Image>
Converts an array of pixel values into an Image object.
fromBase64(String key, String base64) Future<Image>
fromCache(String name) Image
Returns the image name from the cache.
load(String fileName, [bool isFromDevice = false]) Future<Image>
Loads the specified image with fileName into the cache.
loadAll(List<String> fileNames) Future<List<Image>>
Loads all images with the specified fileNames into the cache.
loadAllFromPattern(Pattern pattern) Future<List<Image>>
Loads all images in the prefixed path that are matching the specified pattern.
loadAllImages() Future<List<Image>>
Loads all images from the specified (or default) prefix into the cache.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ready() Future<void>
Waits until all currently pending image loading operations complete.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited