UNotificationRequest constructor

const UNotificationRequest({
  1. required int id,
  2. String? title,
  3. String? body,
  4. String? subtitle,
  5. Map<String, Object?>? payload,
  6. String? image,
  7. String? largeIcon,
  8. String? channelId,
  9. UNotificationImportance importance = UNotificationImportance.high,
  10. String? group,
  11. bool groupSummary = false,
  12. List<UNotificationAction> actions = const <UNotificationAction>[],
  13. UNotificationProgress? progress,
  14. bool ongoing = false,
  15. bool autoCancel = true,
  16. bool silent = false,
  17. String? sound,
  18. int? badge,
  19. int? color,
  20. Duration? timeout,
  21. bool fullScreen = false,
  22. UNotificationVisibility visibility = UNotificationVisibility.private,
  23. List<String> lines = const <String>[],
  24. bool chronometer = false,
  25. DateTime? when,
  26. UNotificationInterruption interruption = UNotificationInterruption.active,
  27. double? relevance,
  28. String? category,
})

Implementation

const UNotificationRequest({
  required this.id,
  this.title,
  this.body,
  this.subtitle,
  this.payload,
  this.image,
  this.largeIcon,
  this.channelId,
  this.importance = UNotificationImportance.high,
  this.group,
  this.groupSummary = false,
  this.actions = const <UNotificationAction>[],
  this.progress,
  this.ongoing = false,
  this.autoCancel = true,
  this.silent = false,
  this.sound,
  this.badge,
  this.color,
  this.timeout,
  this.fullScreen = false,
  this.visibility = UNotificationVisibility.private,
  this.lines = const <String>[],
  this.chronometer = false,
  this.when,
  this.interruption = UNotificationInterruption.active,
  this.relevance,
  this.category,
});