BackGestureConfig class

Constructors

BackGestureConfig({GestureMeasurement swipeDetectionArea = const GestureMeasurement.percentage(1), GestureMeasurement swipeTransitionRange = const GestureMeasurement.pixels(150), double swipeVelocityThreshold = 1100, double animationProgressCompleteThreshold = 0.5, Curve commitAnimationCurve = Curves.fastEaseInToSlowEaseOut, Duration? commitAnimationDuration, Curve cancelAnimationCurve = Curves.fastOutSlowIn, Duration? cancelAnimationDuration})
Creates a configuration for the back gesture.
const

Properties

animationProgressCompleteThreshold double
Defines the animation progress (0.0 to 1.0) at which the back gesture will complete and pop the current route, even if swipe velocity is low.
final
cancelAnimationCurve Curve
Defines the curve to use for the cancel animation when the gesture is cancelled.
final
cancelAnimationDuration Duration?
The duration of the cancel animation. If null, commitAnimationDuration will be used.
final
commitAnimationCurve Curve
The curve to use for the commit animation when the gesture is completed.
final
commitAnimationDuration Duration?
The duration of the commit animation. If null, the reverseDuration of the route's transition will be used.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
swipeDetectionArea GestureMeasurement
Defines the width of the area on the screen edge where the back gesture can be initiated. Can be specified in pixels or as a percentage of the screen width.
final
swipeTransitionRange GestureMeasurement
Defines the swipe distance (horizontally) required for the page transition animation to go from its start (fully visible) to its end (fully hidden). This controls the sensitivity of the drag.
final
swipeVelocityThreshold double
Defines the minimum swipe velocity (in dp/s) required to trigger a full pop of the current route.
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