playNotification method

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

Play default notification sound

Implementation

Future<void> playNotification({
  double? volume,
  bool? looping,
  bool asAlarm = false,
}) {
  return FlutterRingtonePlayerPlatform.instance
      .playNotification(volume: volume, looping: looping, asAlarm: asAlarm);
}