ImageMap class

The ImageMap is a helper class for loading and keeping references to multiple images.

Constructors

ImageMap({AssetBundle? bundle})
Creates a new ImageMap where images will be loaded from the specified bundle, or from the rootBundle if no bundle is provided.

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

getImage(String url) Image?
Returns a preloaded image, given its url.
load(List<String> urls) Future<List<Image>>
Loads a list of images given their urls.
loadImage(String url) Future<Image>
Loads a single image given the image's url and adds it to the ImageMap.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String url) Image?
Returns a preloaded image, given its url.