ImageItem class
The ImageItem class encapsulates the details of an image, including its dimensions (width and height), viewport ratio, and the raw image data as a byte array. It also provides a Completer to handle the asynchronous loading of the image.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int
-
The height of the image.
getter/setter pair
- image ↔ Uint8List
-
The raw image data as a byte array.
getter/setter pair
- loader ↔ Completer
-
A Completer to handle the asynchronous loading of the image.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → Future
-
The status getter returns the status of the image loader.
no setter
- viewportRatio ↔ double
-
The viewport ratio of the image.
getter/setter pair
- width ↔ int
-
getter/setter pair
Methods
-
load(
dynamic imageFile, Size viewportSize) → Future - The load method loads the image asynchronously and sets the image dimensions, viewport ratio, and raw image data.
-
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