NotificationPermission class final

Cross-platform snapshot of notification permission.

Constructors

NotificationPermission({required NotificationAuthorization status, bool alert = false, bool badge = false, bool sound = false, bool announcement = false, bool carPlay = false, bool criticalAlert = false, bool providesAppNotificationSettings = false, bool timeSensitive = false})
Creates a permission snapshot.
const

Properties

alert → bool
Whether alert presentation is enabled.
final
announcement → bool
Whether announcement (Siri) delivery is enabled.
final
badge → bool
Whether badge updates are enabled.
final
carPlay → bool
Whether CarPlay presentation is enabled.
final
criticalAlert → bool
Whether critical alerts are enabled.
final
granted → bool
Whether the OS will deliver notifications to this app instance.
no setter
hashCode → int
The hash code for this object.
no setterinherited
providesAppNotificationSettings → bool
Whether the system can open the app notification settings.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sound → bool
Whether notification sounds are enabled.
final
status → NotificationAuthorization
Overall authorization decision.
final
timeSensitive → bool
Whether time-sensitive notifications are enabled.
final

Methods

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

Operators

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

Constants

undetermined → const NotificationPermission
Permission has not been requested or could not be read.