SimpleSwipeConfig class
Configuration class for swipe gesture.
Constructors
- SimpleSwipeConfig({double verticalThreshold = 50.0, double horizontalThreshold = 50.0, SwipeDetectionBehavior swipeDetectionBehavior = SwipeDetectionBehavior.singularOnEnd})
-
Creates a SimpleSwipeConfig object.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- horizontalThreshold → double
-
Amount of offset after which horizontal swipes get detected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- swipeDetectionBehavior → SwipeDetectionBehavior
-
Behavior used for swipe gesture detection.
By default,
SwipeDetectionBehavior.singularOnEnd
is used, which runs callback after swipe is completed. UseSwipeDetectionBehavior.continuous
for most reactive behavior but be careful with threshold values.final - verticalThreshold → double
-
Amount of offset after which vertical swipes get detected.
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