AndroidNotificationChannel class

Settings for Android notification channels.

Constructors

AndroidNotificationChannel(String id, String name, String description, {String groupId, Importance importance: Importance.defaultImportance, bool playSound: true, AndroidNotificationSound sound, bool enableVibration: true, Int64List vibrationPattern, bool showBadge: true, bool enableLights: false, Color ledColor})
Constructs an instance of AndroidNotificationChannel.
const

Properties

description String
The channel's description.
final
enableLights bool
Indicates if lights should be enabled when the notification is displayed. [...]
final
enableVibration bool
Indicates if vibration should be enabled when the notification is displayed. Tied to the specified channel and cannot be changed after the channel has been created for the first time.
final
groupId String
The id of the group that the channel belongs to.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
The channel's id.
final
importance Importance
The importance of the notification.
final
ledColor Color
Specifies the light color of the notification. [...]
final
name String
The channel's name.
final
playSound bool
Indicates if a sound should be played when the notification is displayed. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showBadge bool
Whether notifications posted to this channel can appear as application icon badges in a Launcher
final
sound AndroidNotificationSound
The sound to play for the notification. [...]
final
vibrationPattern Int64List
Configures the vibration pattern. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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