HapticFeedback class

Utility class for haptic feedback

Constructors

HapticFeedback()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

forCountdownComplete() Future<void>
Trigger haptic feedback for countdown completion
forCountdownPause() Future<void>
Trigger haptic feedback for countdown pause
forCountdownReset() Future<void>
Trigger haptic feedback for countdown reset
forCountdownResume() Future<void>
Trigger haptic feedback for countdown resume
forTimerState({required bool isFinished, bool isPaused = false, bool isResumed = false}) Future<void>
Trigger haptic feedback based on timer state
heavyImpact() Future<void>
Trigger heavy impact haptic feedback
lightImpact() Future<void>
Trigger light impact haptic feedback
mediumImpact() Future<void>
Trigger medium impact haptic feedback
selectionChanged() Future<void>
Trigger selection change haptic feedback
vibrate() Future<void>
Trigger vibrate haptic feedback