UCropOptions class

How the cropper opens: shape, aspect ratio(s), max size, rotate/flip/adjust tools. UCropOptions(aspectRatio: 1, shape: UCropShape.circle)

Constructors

UCropOptions({UCropShape shape = UCropShape.rectangle, double? aspectRatio, List<UCropAspectRatio>? aspectRatios, int? maxWidth, int? maxHeight, bool allowRotate = true, bool allowFlip = true, bool allowAdjust = true, bool allowShapeToggle = false, String? title})
const

Properties

allowAdjust → bool
Shows brightness/contrast/saturation sliders.
final
allowFlip → bool
Shows the flip button.
final
allowRotate → bool
Shows the rotate button.
final
allowShapeToggle → bool
Lets the user switch rectangle/circle.
final
aspectRatio → double?
Fixed width/height ratio, e.g. 1 for square, 16/9; null = free.
final
aspectRatios → List<UCropAspectRatio>?
Ratios the user can switch between.
final
hashCode → int
The hash code for this object.
no setterinherited
maxHeight → int?
Scales the result down to this height.
final
maxWidth → int?
Scales the result down to this width.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → UCropShape
Crop frame shape: rectangle or circle.
final
title → String?
Title of the crop screen.
final

Methods

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