ImageContentMode enum
Values
- FIT_XY → const ImageContentMode
-
Compute a scale that will maintain the original aspect ratio, but will also ensure that it fits entirely inside the destination view. At least one axis (X or Y) will fit exactly. The result is centered inside the destination.
- FIT_CENTER → const ImageContentMode
-
Compute a scale that will maintain the original aspect ratio, but will also ensure that it fits entirely inside the destination view. At least one axis (X or Y) will fit exactly. The result is centered inside the destination.
- CENTER_CROP → const ImageContentMode
-
Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
- CENTER → const ImageContentMode
-
Center the image in the view but perform no scaling.
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
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
-
values
→ const List<
ImageContentMode> - A constant List of the values in this enum, in order of their declaration.