defaultSound property

String? defaultSound
getter/setter pair

Specifies the name of the file to play for the notification.

The presentSoundGetter callback should return true for this to work. If presentSoundGetter returns true, but this is not specified then the default sound is played.

Add the audio file in Runner/Resources/audio-file-here

Make sure to pass the file extension in the string here. Extension is required for audio files on iOS

Implementation

static String? defaultSound;