ImageInfo class

A dart:ui.Image object with its corresponding scale.

ImageInfo objects are used by ImageStream objects to represent the actual data of the image once it has been obtained.

The receiver of an ImageInfo object must call dispose. To safely share the object with other clients, use the clone method before calling dispose.

Annotations

Constructors

ImageInfo({required Image image, double scale = 1.0, String? debugLabel})
Creates an ImageInfo object for the given image and scale.
const

Properties

debugLabel String?
A string used for debugging purposes to identify the source of this image.
final
hashCode int
The hash code for this object.
no setteroverride
image Image
The raw image pixels.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
The linear scale factor for drawing this image at its intended size.
final
sizeBytes int
The size of raw image pixels in bytes.
no setter

Methods

clone() ImageInfo
Creates an ImageInfo with a cloned image.
dispose() → void
Disposes of this object.
isCloneOf(ImageInfo other) bool
Whether this ImageInfo is a clone of the other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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