play method

Future<void> play(
  1. SystemSoundID soundId, {
  2. bool waitForCompletion = false,
})

Plays a predefined soundId.

With waitForCompletion the future completes only after the sound has finished playing.

Implementation

Future<void> play(SystemSoundID soundId, {bool waitForCompletion = false}) {
  throw UnimplementedError(
    'play() is iOS platform specific method which is not implemented',
  );
}