AndroidNotificationOptions constructor

AndroidNotificationOptions({
  1. required int id,
  2. required String channelId,
  3. required String channelName,
  4. required String notificationTitle,
  5. String? notificationText,
  6. String? channelDescription,
  7. bool enableVibration = false,
  8. bool playSound = false,
  9. bool showWhen = false,
  10. NotificationIconData? iconData,
})

Implementation

AndroidNotificationOptions({
  required this.id,
  required this.channelId,
  required this.channelName,
  required this.notificationTitle,
  this.notificationText,
  this.channelDescription,
  this.enableVibration = false,
  this.playSound = false,
  this.showWhen = false,
  this.iconData,
})  : assert(channelId.isNotEmpty),
      assert(channelName.isNotEmpty),
      assert(notificationTitle.isNotEmpty);