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.
no setterinherited
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.
no setterinherited
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 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