UNotificationChannel constructor

const UNotificationChannel({
  1. required String id,
  2. required String name,
  3. String? description,
  4. UNotificationImportance importance = UNotificationImportance.normal,
  5. String? sound,
  6. bool vibration = true,
  7. List<int>? vibrationPattern,
  8. int? lightColor,
  9. bool showBadge = true,
  10. bool bypassDnd = false,
  11. UNotificationVisibility visibility = UNotificationVisibility.private,
  12. 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,
});