CropArea class

Area for an image cropping.

Top left corner of the rotated by angle image is considered as (0, 0) coordinates start point. So, obviously, CropArea.bottomRight point's coordinates should be bigger than the ones of CropArea.topLeft point.

Annotations

Constructors

CropArea({required CropPoint topLeft, required CropPoint bottomRight, Angle? angle})
CropArea.fromJson(Map<String, dynamic> json)
Constructs a CropArea from the provided json.
factory

Properties

angle Angle?
Angle to rotate image before cropping.
getter/setter pair
bottomRight CropPoint
Point of a bottom right corner of this CropArea.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topLeft CropPoint
Point of a top left corner of this CropArea.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a Map representing this CropArea.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override