HapticsType enum

Pass the HapticsType to Haptics.vibrate to trigger a haptic feedback.

Inheritance
Available extensions

Values

success → const HapticsType

https://developer.apple.com/design/human-interface-guidelines/playing-haptics#iOS Indicates that a task or action has completed.

warning → const HapticsType

Indicates that a task or action has produced a warning of some kind.

error → const HapticsType

Indicates that an error has occurred.

light → const HapticsType

Indicates a collision between small or lightweight UI objects.

medium → const HapticsType

Indicates a collision between medium-sized or medium-weight UI objects.

heavy → const HapticsType

Indicates a collision between large or heavyweight UI objects.

rigid → const HapticsType

Indicates a collision between hard or inflexible UI objects.

soft → const HapticsType

Indicates a collision between soft or flexible UI objects.

selection → const HapticsType

Indicates that a UI element’s values are changing.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

Constants

values → const List<HapticsType>
A constant List of the values in this enum, in order of their declaration.