CropController class
Controller to control crop actions.
Constructors
Properties
- area ← ImageBasedRect
-
change ViewportBasedRect of crop rect
based on ImageBasedRect of original image.
no getter
- aspectRatio ← double?
-
change fixed aspect ratio
if
value
is null, cropping area can be moved without fixed aspect ratio.no getter - cropRect ← ViewportBasedRect
-
change ViewportBasedRect of crop rect.
the value is corrected if it indicates outside of the image.
no getter
- delegate ← CropControllerDelegate
-
setter for CropControllerDelegate
no getter
- hashCode → int
-
The hash code for this object.
no setterinherited
- image ← Uint8List
-
Change image to be cropped.
When image is changed, Rect of cropping area will be reset.
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- withCircleUi ← bool
-
change if cropping with circle shaped UI.
if
value
is true, aspectRatio automatically fixed with 1no getter
Methods
-
crop(
) → void - crop given image with current configuration
-
cropCircle(
) → void - crop given image with current configuration and circle shape.
-
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