ScaleToFit enum

enum Matrix::ScaleToFit ScaleToFit describes how Matrix is constructed to map one Rect to another.

ScaleToFit may allow Matrix to have unequal horizontal and vertical scaling, or may restrict Matrix to square scaling. If restricted, ScaleToFit specifies how Matrix maps to the side or center of the destination Rect.

Inheritance
Available extensions

Values

kFill_ScaleToFit → const ScaleToFit

scales in x and y to fill destination Rect

const ScaleToFit(0)
kStart_ScaleToFit → const ScaleToFit

scales and aligns to left and top

const ScaleToFit(1)
kCenter_ScaleToFit → const ScaleToFit

scales and aligns to center

const ScaleToFit(2)
kEnd_ScaleToFit → const ScaleToFit

scales and aligns to right and bottom

const ScaleToFit(3)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
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

Static Methods

fromValue(int value) ScaleToFit

Constants

values → const List<ScaleToFit>
A constant List of the values in this enum, in order of their declaration.