dismissThresholds property

Map<SlideActionType, double> dismissThresholds
final

The offset threshold the item has to be dragged in order to be considered dismissed.

Represented as a fraction, e.g. if it is 0.4 (the default), then the item has to be dragged at least 40% towards one direction to be considered dismissed. Clients can define different thresholds for each dismiss direction.

Flinging is treated as being equivalent to dragging almost to 1.0, so flinging can dismiss an item past any threshold less than 1.0.

Setting a threshold of 1.0 (or greater) prevents a drag for

Implementation

//  the given [SlideActionType]
final Map<SlideActionType, double> dismissThresholds;