CropGestureConfiguration class
Configuration options for touch gestures, pinch-zoom, and boundary constraints.
- Annotations
Constructors
- CropGestureConfiguration({bool enablePan = true, bool enableZoom = true, bool enableRotationGesture = false, bool enableDoubleTapZoom = true, double doubleTapZoomFactor = 2.0, double minZoom = 1.0, double maxZoom = 8.0, double initialZoom = 1.0, double zoomStep = 0.5})
-
Creates a CropGestureConfiguration.
const
Properties
- doubleTapZoomFactor → double
-
The zoom multiplier applied on double-tap when at minZoom.
final
- enableDoubleTapZoom → bool
-
Whether double-tapping quickly zooms in/out between minZoom and doubleTapZoomFactor.
final
- enablePan → bool
-
Whether 1-finger panning / dragging is enabled.
final
- enableRotationGesture → bool
-
Whether 2-finger continuous rotation gestures are enabled.
final
- enableZoom → bool
-
Whether 2-finger pinch zooming is enabled.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- initialZoom → double
-
Initial zoom scale when the image is first loaded.
final
- maxZoom → double
-
Maximum allowable zoom multiplier (default 8.0).
final
- minZoom → double
-
Minimum allowable zoom multiplier (default 1.0).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoomStep → double
-
Incremental step for programmatic
zoomInandzoomOutcalls.final
Methods
-
copyWith(
{bool? enablePan, bool? enableZoom, bool? enableRotationGesture, bool? enableDoubleTapZoom, double? doubleTapZoomFactor, double? minZoom, double? maxZoom, double? initialZoom, double? zoomStep}) → CropGestureConfiguration - Creates a copy with modified properties.
-
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.
override