vibratePattern method

Future<void> vibratePattern({
  1. required List<int> pattern,
  2. List<int>? amplitudes,
  3. bool repeat = false,
})

Vibrate with a custom pattern (Android only).

pattern: A list of durations (in milliseconds) for which to turn the vibrator on or off. amplitudes: (Optional) A list of amplitude values (1-255) corresponding to each duration in pattern. repeat: (Optional) Whether to repeat the vibration pattern. Default is false.

Implementation

Future<void> vibratePattern({
  required List<int> pattern,
  List<int>? amplitudes,
  bool repeat = false,
}) {
  throw UnimplementedError('vibratePattern() has not been implemented.');
}