CropAspectRatios class
CropAspectRatios defines a set of commonly used aspect ratios for cropping an image. These static constants represent different ratios between width and height.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- custom → const double?
- No aspect ratio for crop; free-form cropping is allowed.
- original → const double
- The same as the original aspect ratio of the image. if it's equal or less than 0, it will be treated as original.
- ratio1_1 → const double
- Aspect ratio of 1:1 (square).
- ratio3_4 → const double
- Aspect ratio of 3:4 (portrait).
- ratio4_3 → const double
- Aspect ratio of 4:3 (landscape).
- ratio9_16 → const double
- Aspect ratio of 9:16 (portrait).
- ratio16_9 → const double
- Aspect ratio of 16:9 (landscape).