DropSwipeController class
Constructors
- DropSwipeController({HapticFeedbackType feedbackType = HapticFeedbackType.light, double position = 0, double animateHeight = 50, double minimumHeight = 50, Duration reverseDuration = const Duration(milliseconds: 30)})
Properties
- animateHeight → double
-
Public access to animated height
no setterinherited
- currentPosition → double
-
Public access to current position
no setterinherited
- feedbackType → HapticFeedbackType
-
Haptic feedback type
use default flutter impact HapticFeedback
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- minHeight → double
-
Public access to minimal height to make action
no setterinherited
- position ↔ double
-
Initial position of drop swipe element
getter/setter pairinherited
- reverseDuration → Duration
-
Public access to reverse duration
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
double> -
Public access to stream
no setter
Methods
-
animateTo(
double position, {Duration? duration}) → void - Swipe to position with Animation
-
createHapticFeedback(
) → void - Make haptic feedback based on the set type
-
dispose(
) → void - must be called to close stream
-
jumpTo(
double position) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reverse(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited