playPattern method

Future<void> playPattern({
  1. required List<Map<String, Object?>> events,
  2. required List<int> timings,
  3. required List<int> amplitudes,
  4. double atTime = 0.0,
})

Plays a events timeline (serialised HapticEvents sorted by time), with a pre-flattened waveform (timings/amplitudes) for platforms and devices that cannot render the events natively.

Implementation

Future<void> playPattern({
  required List<Map<String, Object?>> events,
  required List<int> timings,
  required List<int> amplitudes,
  double atTime = 0.0,
}) {
  throw UnimplementedError('playPattern() has not been implemented.');
}