AssetBundleImageKey class Null safety

Key for the image obtained by an AssetImage or ExactAssetImage.

This is used to identify the precise resource in the imageCache.

Annotations

Constructors

AssetBundleImageKey({required AssetBundle bundle, required String name, required double scale})
Creates the key for an AssetImage or AssetBundleImageProvider.
const

Properties

bundle AssetBundle
The bundle from which the image will be obtained.
final
hashCode int
The hash code for this object.
read-onlyoverride
name String
The key to use to obtain the resource from the bundle. This is the argument passed to AssetBundle.load.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scale double
The scale to place in the ImageInfo object of the image.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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