AndroidNotificationChannel constructor
const
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,
- AudioAttributesUsage audioAttributesUsage = AudioAttributesUsage.notification,
Constructs an instance of AndroidNotificationChannel.
Implementation
const AndroidNotificationChannel(
this.id,
this.name, {
this.description,
this.groupId,
this.importance = Importance.defaultImportance,
this.playSound = true,
this.sound,
this.enableVibration = true,
this.vibrationPattern,
this.showBadge = true,
this.enableLights = false,
this.ledColor,
this.audioAttributesUsage = AudioAttributesUsage.notification,
});