NotificationChannelImportance enum

Inheritance

Constructors

NotificationChannelImportance()
const

Values

unspecified → const NotificationChannelImportance

Value signifying that the user has not expressed an importance. This value is for persisting preferences, and should never be associated with an actual notification.

none → const NotificationChannelImportance

A notification with no importance: does not show in the shade.

min → const NotificationChannelImportance

Min notification importance: only shows in the shade, below the fold. Do not use this to start a foreground service.

low → const NotificationChannelImportance

Low notification importance: Shows in the shade, and potentially in the status bar, but is not audibly intrusive.

defaultImportance → const NotificationChannelImportance

Default notification importance: shows everywhere, makes noise, but does not visually intrude.

high → const NotificationChannelImportance

Higher notification importance: shows everywhere, makes noise and peeks. May use full screen intents. This is most likely the one you want.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nativeValue() int
maps the current importance to the corresponding value for the native platform.
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<NotificationChannelImportance>
A constant List of the values in this enum, in order of their declaration.