beep static method

Future<void> beep([
  1. bool success = true
])

Implementation

static Future<void> beep([bool success = true]) {
  int soundId;
  if (Platform.isAndroid) {
    soundId = success ? 24 : 25;
  } else {
    soundId = success ? 1256 : 1257;
  }
  return playSysSound(soundId);
}