Vibration class

Platform-independent vibration methods.

Constructors

Vibration()

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

cancel() Future<void>
Cancel ongoing vibration. [...]
hasAmplitudeControl() Future<bool>
Check if the vibrator has amplitude control. [...]
hasCustomVibrationsSupport() Future<bool>
Check if the device is able to vibrate with a custom duration, pattern or intensities. May return true even if the device has no vibrator. [...]
hasVibrator() Future<bool>
Check if vibrator is available on device. [...]
vibrate({int duration: 500, List<int> pattern: const [], int repeat: -1, List<int> intensities: const [], int amplitude: -1}) Future<void>
Vibrate with duration at amplitude or pattern at intensities. [...]