SwipeDismissSensitivity class

Configuration for the swipe-to-dismiss sensitivity of ModalSheetRoute, ModalSheetPage, and related classes.

The modal will be dismissed under the following conditions:

  • A downward fling gesture with the ratio of the velocity to the viewport height that exceeds minFlingVelocityRatio.
  • A drag gesture ending with zero velocity, where the downward distance exceeds minDragDistance.

Constructors

SwipeDismissSensitivity({double minFlingVelocityRatio = 2.0, double minDragDistance = 200.0})
Creates a swipe-to-dismiss sensitivity configuration.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
minDragDistance double
Minimum downward drag distance required for dismissal when the gesture ends with zero velocity.
final
minFlingVelocityRatio double
Minimum ratio of gesture velocity to viewport height required to trigger dismissal for a downward fling gesture.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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