NotificationContent constructor
NotificationContent({
- required int id,
- required String channelKey,
- String? title,
- String? body,
- String? titleLocKey,
- String? bodyLocKey,
- List<
String> ? titleLocArgs, - List<
String> ? bodyLocArgs, - String? groupKey,
- String? summary,
- String? icon,
- String? largeIcon,
- String? bigPicture,
- String? customSound,
- bool showWhen = true,
- bool wakeUpScreen = false,
- bool fullScreenIntent = false,
- bool criticalAlert = false,
- bool roundedLargeIcon = false,
- bool roundedBigPicture = false,
- bool autoDismissible = true,
- Color? color,
- Duration? timeoutAfter,
- Duration? chronometer,
- Color? backgroundColor,
- ActionType actionType = ActionType.Default,
- NotificationLayout notificationLayout = NotificationLayout.Default,
- Map<
String, String?> ? payload, - NotificationCategory? 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,
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;