NotificationContent constructor

NotificationContent({
  1. required int id,
  2. required String channelKey,
  3. String? title,
  4. String? body,
  5. String? titleLocKey,
  6. String? bodyLocKey,
  7. List<String>? titleLocArgs,
  8. List<String>? bodyLocArgs,
  9. String? groupKey,
  10. String? summary,
  11. String? icon,
  12. String? largeIcon,
  13. String? bigPicture,
  14. String? customSound,
  15. bool showWhen = true,
  16. bool wakeUpScreen = false,
  17. bool fullScreenIntent = false,
  18. bool criticalAlert = false,
  19. bool roundedLargeIcon = false,
  20. bool roundedBigPicture = false,
  21. bool autoDismissible = true,
  22. Color? color,
  23. Duration? timeoutAfter,
  24. Duration? chronometer,
  25. Color? backgroundColor,
  26. ActionType actionType = ActionType.Default,
  27. NotificationLayout notificationLayout = NotificationLayout.Default,
  28. Map<String, String?>? payload,
  29. NotificationCategory? category,
  30. bool hideLargeIconOnExpand = false,
  31. bool locked = false,
  32. double? progress,
  33. int? badge,
  34. String? ticker,
  35. bool displayOnForeground = true,
  36. bool displayOnBackground = true,
  37. Duration? duration,
  38. NotificationPlayState? playState,
  39. double? playbackSpeed,
})

Constructs a NotificationContent object with various customization options.

Implementation

NotificationContent(
    {required int super.id,
    required String super.channelKey,
    super.title,
    super.body,
    super.titleLocKey,
    super.bodyLocKey,
    super.titleLocArgs,
    super.bodyLocArgs,
    super.groupKey,
    super.summary,
    super.icon,
    super.largeIcon,
    super.bigPicture,
    super.customSound,
    super.showWhen,
    super.wakeUpScreen,
    super.fullScreenIntent,
    super.criticalAlert,
    super.roundedLargeIcon,
    super.roundedBigPicture,
    super.autoDismissible,
    super.color,
    super.timeoutAfter,
    super.chronometer,
    super.backgroundColor,
    super.actionType,
    NotificationLayout notificationLayout = NotificationLayout.Default,
    super.payload,
    super.category,
    bool hideLargeIconOnExpand = false,
    bool locked = false,
    double? progress,
    int? badge,
    String? ticker,
    bool displayOnForeground = true,
    bool displayOnBackground = true,
    Duration? duration,
    NotificationPlayState? playState,
    double? playbackSpeed})
    : _hideLargeIconOnExpand = hideLargeIconOnExpand,
      _progress = progress,
      _ticker = ticker,
      _badge = badge,
      _notificationLayout = notificationLayout,
      _displayOnForeground = displayOnForeground,
      _displayOnBackground = displayOnBackground,
      _locked = locked,
      _duration = duration,
      _playState = playState,
      _playbackSpeed = playbackSpeed;