WindowsNotificationAudio class

Specifies custom audio to play during a notification.

Constructors

WindowsNotificationAudio.asset(String assetName, {bool shouldLoop = false, WindowsNotificationSound fallback = WindowsNotificationSound.defaultSound})
Uses an audio file from a Flutter asset.
WindowsNotificationAudio.preset({required WindowsNotificationSound sound, bool shouldLoop = false})
Audio from a Windows preset. See WindowsNotificationSound for options.
WindowsNotificationAudio.silent()
No sound will play during this notification.

Properties

hashCode int
The hash code for this object.
no setterinherited
isSilent bool
Whether this notification should be silent.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldLoop bool
Whether this audio should loop.
final
source String
The source of the audio.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited