FreeCropArea class

A class representing a free-form crop area with a specified size. This class extends CropArea and does not maintain an aspect ratio by default.

Inheritance
Implementers

Constructors

FreeCropArea({required bool isEditable, required Size size, Offset? origin, bool isCircle = false, bool keepAspectRatio = false})
Creates an instance of FreeCropArea.

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).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
The size of the crop area.
final

Methods

getArea(Size size) Rect
Abstract method to calculate and return the crop area as a Rect. The method uses the provided size to 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