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. NotificationVisibility visibility = NotificationVisibility.VISIBILITY_PUBLIC,
})

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.visibility = NotificationVisibility.VISIBILITY_PUBLIC,
})  : assert(channelId.isNotEmpty),
      assert(channelName.isNotEmpty);