playSound static method

void playSound(
  1. dynamic soundId
)

Play a pre-recorded sound by id.

Parameters

  • soundId: Platform-specific identifier for the sound to play.

Implementation

static void playSound(dynamic soundId) {
  staticMethod('SoundService', 'playSound', args: soundId);
}