AndroidNotificationDetails constructor

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

Constructs an instance of AndroidNotificationDetails.

Implementation

const AndroidNotificationDetails(
  this.channelId,
  this.channelName, {
  this.channelDescription,
  this.icon,
  this.importance = Importance.defaultImportance,
  this.channelBypassDnd = false,
  this.priority = Priority.defaultPriority,
  this.styleInformation,
  this.playSound = true,
  this.sound,
  this.enableVibration = true,
  this.vibrationPattern,
  this.groupKey,
  this.setAsGroupSummary = false,
  this.groupAlertBehavior = GroupAlertBehavior.all,
  this.autoCancel = true,
  this.ongoing = false,
  this.silent = false,
  this.color,
  this.largeIcon,
  this.onlyAlertOnce = false,
  this.showWhen = true,
  this.when,
  this.usesChronometer = false,
  this.chronometerCountDown = 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,
  this.subText,
  this.tag,
  this.actions,
  this.colorized = false,
  this.number,
  this.audioAttributesUsage = AudioAttributesUsage.notification,
});