AspectRatioCropArea class
A class representing a crop area with a specific aspect ratio. This class extends CropArea and maintains the aspect ratio of the crop area.
Constructors
- AspectRatioCropArea({required bool isEditable, required double aspectRatio, required double margin})
- Creates an instance of AspectRatioCropArea.
Properties
- aspectRatio → double
-
The aspect ratio to be maintained by the crop area.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCircle → bool
-
A boolean flag indicating whether the crop area is circular.
finalinherited
- isEditable → bool
-
A boolean flag indicating whether the crop area is editable.
finalinherited
- keepAspectRatio → bool
-
A boolean flag indicating whether the aspect ratio should be maintained.
finalinherited
- margin → double
-
The margin around the crop area.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getArea(
Size size) → Rect -
Abstract method to calculate and return the crop area as a Rect.
The method uses the provided
sizeto calculate the area.override -
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