ImageScale class

Represents an image scaling configuration with a specific width and height.

Constructors

ImageScale.new({required int width, required int height})
Creates an instance of ImageScale with the given width and height.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
The target height of the scaled image.
final
isOriginal bool
Returns true if this instance represents the original image (no scaling).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
The target width of the scaled image.
final

Methods

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

Constants

original → const ImageScale
Factory constructor for representing the original image without scaling.