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 = false,
  14. GroupAlertBehavior groupAlertBehavior = GroupAlertBehavior.all,
  15. bool autoCancel = true,
  16. bool ongoing = false,
  17. bool silent = false,
  18. Color? color,
  19. AndroidBitmap<Object>? largeIcon,
  20. bool onlyAlertOnce = false,
  21. bool showWhen = true,
  22. int? when,
  23. bool usesChronometer = false,
  24. bool chronometerCountDown = false,
  25. bool channelShowBadge = true,
  26. bool showProgress = false,
  27. int maxProgress = 0,
  28. int progress = 0,
  29. bool indeterminate = false,
  30. AndroidNotificationChannelAction channelAction = AndroidNotificationChannelAction.createIfNotExists,
  31. bool enableLights = false,
  32. Color? ledColor,
  33. int? ledOnMs,
  34. int? ledOffMs,
  35. String? ticker,
  36. NotificationVisibility? visibility,
  37. int? timeoutAfter,
  38. AndroidNotificationCategory? category,
  39. bool fullScreenIntent = false,
  40. String? shortcutId,
  41. Int32List? additionalFlags,
  42. String? subText,
  43. String? tag,
  44. List<AndroidNotificationAction>? actions,
  45. bool colorized = false,
  46. int? number,
  47. 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.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,
});