NotifySound class sealed
Sound configuration for a notification.
Constructors
- NotifySound.alarm(String name)
-
Alarm sound — bypasses silent mode.
constfactory
- NotifySound.critical(String name, {double volume})
-
Critical sound — bypasses DND and silent switch (iOS entitlement required).
constfactory
- NotifySound.custom(String name, {bool loop})
-
Custom sound from app resources.
constfactory
- NotifySound.default_()
-
System default notification sound.
constfactory
- NotifySound.none()
-
No sound.
constfactory
- NotifySound.systemAlarm()
-
System default alarm sound (no custom file needed).
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Serializes to a map for platform channel communication.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited