NotificationPermissionStatus enum

Represents the status of notification permissions across platforms.

This enum provides a unified way to represent notification permission states across iOS, Android, and web platforms.

Inheritance
Available extensions

Values

authorized → const NotificationPermissionStatus

Notification permissions have been granted by the user.

The app can display notifications and badges.

denied → const NotificationPermissionStatus

Notification permissions have been denied by the user.

On iOS, this is a permanent state and permissions cannot be re-requested. On Android, permissions can be requested again unless permanently denied. The app must direct users to system settings to enable notifications.

notDetermined → const NotificationPermissionStatus

Notification permissions have not been requested yet.

The app can show a permission rationale and request permissions. This is the initial state before any permission request.

provisional → const NotificationPermissionStatus

Notification permissions have been provisionally authorized (iOS only).

Notifications are delivered quietly to the Notification Center without sound, badge, or banner. The user can promote to full authorization from the Notification Center.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<NotificationPermissionStatus>
A constant List of the values in this enum, in order of their declaration.