ImageSizeInfo class

Tracks the bytes used by a dart:ui.Image compared to the bytes needed to paint that image without scaling it.

Annotations

Constructors

ImageSizeInfo({String? source, required Size displaySize, required Size imageSize})
Creates an object to track the backing size of a dart:ui.Image compared to its display size on a Canvas.
const

Properties

decodedSizeInBytes int
The number of bytes used by the image in memory.
no setter
displaySize Size
The size of the area the image will be rendered in.
final
displaySizeInBytes int
The number of bytes needed to render the image without scaling it.
no setter
hashCode int
The hash code for this object.
no setteroverride
imageSize Size
The size the image has been decoded to.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
A unique identifier for this image, for example its asset path or network URL.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Returns a JSON encodable representation of this object.
toString() String
A string representation of this object.
override

Operators

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