playNotification method

Future<void> playNotification({
  1. double? volume,
  2. bool? looping,
  3. bool asAlarm = false,
})

Plays the default notification sound.

Implementation

Future<void> playNotification({
  double? volume,
  bool? looping,
  bool asAlarm = false,
}) => play(
  android: AndroidSounds.notification,
  ios: IosSounds.triTone,
  volume: volume,
  looping: looping,
  asAlarm: asAlarm,
);