HapticFeedback class

Allows access to the haptic feedback interface on the device.

This API is intentionally terse since it calls default platform behavior. It is not suitable for precise control of the system's haptic feedback module.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

heavyImpact() Future<Null>
Provides a haptic feedback corresponding a collision impact with a heavy mass. [...]
lightImpact() Future<Null>
Provides a haptic feedback corresponding a collision impact with a light mass. [...]
mediumImpact() Future<Null>
Provides a haptic feedback corresponding a collision impact with a medium mass. [...]
selectionClick() Future<Null>
Provides a haptic feedback indication selection changing through discrete values. [...]
vibrate() Future<Null>
Provides vibration haptic feedback to the user for a short duration. [...]