playInstructions method

  1. @override
Future<void> playInstructions(
  1. List<HapticInstruction> instructions
)
override

Plays a flattened list of HapticInstructions in order.

Implementation

@override
Future<void> playInstructions(List<HapticInstruction> instructions) async {
  await methodChannel.invokeMethod<void>(
    'playInstructions',
    instructions.map((instruction) => instruction.toMap()).toList(),
  );
}