Future<Null> play(SystemSoundType type)

Play the specified system sound. If that sound is not present on the system, this method is a no-op.

Source

static Future<Null> play(SystemSoundType type) async {
  await PlatformMessages.invokeMethod(
    'flutter/platform',
    'SystemSound.play',
    <String>[ type.toString() ],
  );
}