Importance enum

The available importance levels for Android notifications.

Required for Android 8.0 or newer.

Inheritance
Available extensions

Values

unspecified → const Importance

Corresponds to NotificationManagerCompat.IMPORTANCE_UNSPECIFIED.

const Importance(-1000)
none → const Importance

Corresponds to `NotificationManagerCompat.IMPORTANCE_NONE.

const Importance(0)
min → const Importance

Corresponds to NotificationManagerCompat.IMPORTANCE_MIN.

const Importance(1)
low → const Importance

Corresponds to NotificationManagerCompat#IMPORTANCE_LOW.

const Importance(2)
defaultImportance → const Importance

Corresponds to `NotificationManagerCompat.IMPORTANCE_DEFAULT.

const Importance(3)
high → const Importance

Corresponds to NotificationManagerCompat.IMPORTANCE_HIGH.

const Importance(4)
max → const Importance

Corresponds to `NotificationManagerCompat.IMPORTANCE_MAX.

const Importance(5)

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
value int
The integer representation of Importance.
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

Constants

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