CircleCropArea class
A class representing a circular crop area. This class extends FreeCropArea and forces the crop area to be circular.
- Inheritance
-
- Object
- CropArea
- FreeCropArea
- CircleCropArea
Constructors
- CircleCropArea({required Size size, required bool isEditable, required bool keepAspectRatio, Offset? origin, bool isCircle = true})
- Creates an instance of CircleCropArea.
Properties
- 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
- origin → Offset?
-
The origin point of the crop area (optional).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
The size of the crop area.
finalinherited
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.inherited -
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