UNotificationChannel constructor
const
UNotificationChannel({
- required String id,
- required String name,
- String? description,
- UNotificationImportance importance = UNotificationImportance.normal,
- String? sound,
- bool vibration = true,
- List<
int> ? vibrationPattern, - int? lightColor,
- bool showBadge = true,
- bool bypassDnd = false,
- UNotificationVisibility visibility = UNotificationVisibility.private,
- String? group,
Implementation
const UNotificationChannel({
required this.id,
required this.name,
this.description,
this.importance = UNotificationImportance.normal,
this.sound,
this.vibration = true,
this.vibrationPattern,
this.lightColor,
this.showBadge = true,
this.bypassDnd = false,
this.visibility = UNotificationVisibility.private,
this.group,
});