NotificationImportance enum

Importance levels for notification priority and alerts.

Maps directly to underlying Android Importance and Priority settings.

Example:

const importance = NotificationImportance.high;
Inheritance
Available extensions

Values

low → const NotificationImportance

Low importance notification with no sound or vibration.

const NotificationImportance(Importance.low, Priority.low)
medium → const NotificationImportance

Default notification importance with standard sound/vibration.

const NotificationImportance(Importance.defaultImportance, Priority.defaultPriority)
high → const NotificationImportance

High importance notification with audible sound and banner heads-up.

const NotificationImportance(Importance.high, Priority.high)
max → const NotificationImportance

Maximum importance notification with heads-up display and urgent alert behavior.

const NotificationImportance(Importance.max, Priority.max)

Properties

hashCode int
The hash code for this object.
no setterinherited
importance → Importance
Underlying Flutter Local Notifications Importance level.
final
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
priority → Priority
Underlying Flutter Local Notifications Priority level.
final
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<NotificationImportance>
A constant List of the values in this enum, in order of their declaration.