AndroidNotificationOptions constructor

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

Constructs an instance of AndroidNotificationOptions.

Implementation

AndroidNotificationOptions({
  this.id,
  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(channelId.isNotEmpty),
      assert(channelName.isNotEmpty),
      assert((buttons?.length ?? 0) < 4);