AndroidNotificationOptions constructor

const AndroidNotificationOptions({
  1. required String channelId,
  2. required String channelName,
  3. String? channelDescription,
  4. NotificationChannelImportance channelImportance = NotificationChannelImportance.DEFAULT,
  5. NotificationPriority priority = NotificationPriority.DEFAULT,
  6. bool enableVibration = false,
  7. bool playSound = false,
  8. bool showWhen = false,
  9. bool isSticky = true,
  10. NotificationVisibility visibility = NotificationVisibility.VISIBILITY_PUBLIC,
  11. NotificationIconData? iconData,
  12. List<NotificationButton>? buttons,
})

Constructs an instance of AndroidNotificationOptions.

Implementation

const AndroidNotificationOptions({
  required this.channelId,
  required this.channelName,
  this.channelDescription,
  this.channelImportance = NotificationChannelImportance.DEFAULT,
  this.priority = NotificationPriority.DEFAULT,
  this.enableVibration = false,
  this.playSound = false,
  this.showWhen = false,
  this.isSticky = true,
  this.visibility = NotificationVisibility.VISIBILITY_PUBLIC,
  this.iconData,
  this.buttons,
}) : assert((buttons?.length ?? 0) < 4);