CropSettings class
Relative crop settings used by center-crop operations.
Constructors
- CropSettings({required double widthRatio, required double heightRatio, required double cornerRadius})
-
Creates center-crop settings with width, height, and corner radius values.
const
Properties
- cornerRadius → double
-
Rounded corner radius in source-image pixels.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heightRatio → double
-
Fraction of the source image height to keep, clamped between 0.1 and 1.0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widthRatio → double
-
Fraction of the source image width to keep, clamped between 0.1 and 1.0.
final
Methods
-
copyWith(
{double? widthRatio, double? heightRatio, double? cornerRadius}) → CropSettings - Returns a copy with selected values replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Converts these settings to the map used by the background processor.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromMap(
Map< Object?, Object?> map) → CropSettings - Creates center-crop settings from a map.