AndroidNotificationDetails constructor

const AndroidNotificationDetails(
  1. String channelId,
  2. String channelName,
  3. String channelDescription,
  4. {String icon,
  5. Importance importance = Importance.defaultImportance,
  6. Priority priority = Priority.defaultPriority,
  7. StyleInformation styleInformation,
  8. bool playSound = true,
  9. AndroidNotificationSound sound,
  10. bool enableVibration = true,
  11. Int64List vibrationPattern,
  12. String groupKey,
  13. bool setAsGroupSummary,
  14. GroupAlertBehavior groupAlertBehavior = GroupAlertBehavior.all,
  15. bool autoCancel = true,
  16. bool ongoing,
  17. Color color,
  18. AndroidBitmap largeIcon,
  19. bool onlyAlertOnce,
  20. bool showWhen = true,
  21. int when,
  22. bool usesChronometer = false,
  23. bool channelShowBadge = true,
  24. bool showProgress = false,
  25. int maxProgress = 0,
  26. int progress = 0,
  27. bool indeterminate = false,
  28. AndroidNotificationChannelAction channelAction = AndroidNotificationChannelAction.createIfNotExists,
  29. bool enableLights = false,
  30. Color ledColor,
  31. int ledOnMs,
  32. int ledOffMs,
  33. String ticker,
  34. NotificationVisibility visibility,
  35. int timeoutAfter,
  36. String category,
  37. bool fullScreenIntent = false,
  38. String shortcutId,
  39. Int32List additionalFlags}
)

Constructs an instance of AndroidNotificationDetails.

Implementation

const AndroidNotificationDetails(
  this.channelId,
  this.channelName,
  this.channelDescription, {
  this.icon,
  this.importance = Importance.defaultImportance,
  this.priority = Priority.defaultPriority,
  this.styleInformation,
  this.playSound = true,
  this.sound,
  this.enableVibration = true,
  this.vibrationPattern,
  this.groupKey,
  this.setAsGroupSummary,
  this.groupAlertBehavior = GroupAlertBehavior.all,
  this.autoCancel = true,
  this.ongoing,
  this.color,
  this.largeIcon,
  this.onlyAlertOnce,
  this.showWhen = true,
  this.when,
  this.usesChronometer = false,
  this.channelShowBadge = true,
  this.showProgress = false,
  this.maxProgress = 0,
  this.progress = 0,
  this.indeterminate = false,
  this.channelAction = AndroidNotificationChannelAction.createIfNotExists,
  this.enableLights = false,
  this.ledColor,
  this.ledOnMs,
  this.ledOffMs,
  this.ticker,
  this.visibility,
  this.timeoutAfter,
  this.category,
  this.fullScreenIntent = false,
  this.shortcutId,
  this.additionalFlags,
});