FlutterScanHaptics class
ScanHaptics built on Flutter's HapticFeedback: no plugin and no permission needed.
HapticFeedback follows the system "touch feedback" setting; if it is off, nothing is felt.
- Implemented types
Constructors
- FlutterScanHaptics({HapticPattern accepted = const HapticPattern([HapticImpact.medium]), HapticPattern duplicate = const HapticPattern([HapticImpact.light, HapticImpact.light], pause: Duration(milliseconds: 90)), HapticPattern rejected = const HapticPattern([HapticImpact.vibrate, HapticImpact.vibrate, HapticImpact.vibrate])})
-
Creates haptics with the given patterns.
const
Properties
- accepted → HapticPattern
-
One medium pulse.
final
- duplicate → HapticPattern
-
Two light pulses.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rejected → HapticPattern
-
Three long vibrations.
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
-
play(
ScanFeedbackKind kind) → Future< void> -
Vibrates for
kind.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited