NotificationContent constructor
NotificationContent({
- required int id,
- required String channelKey,
- String? title,
- String? body,
- 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,
- Color? backgroundColor,
- ActionType actionType = ActionType.Default,
- NotificationLayout notificationLayout = NotificationLayout.Default,
- Map<
String, String?> ? payload, - NotificationCategory? category,
- bool hideLargeIconOnExpand = false,
- bool locked = false,
- int? progress,
- int? badge,
- String? ticker,
- bool displayOnForeground = true,
- bool displayOnBackground = true,
Implementation
NotificationContent(
{required int id,
required String channelKey,
String? title,
String? body,
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,
Color? backgroundColor,
ActionType actionType = ActionType.Default,
NotificationLayout notificationLayout = NotificationLayout.Default,
Map<String, String?>? payload,
NotificationCategory? category,
bool hideLargeIconOnExpand = false,
bool locked = false,
int? progress,
int? badge,
String? ticker,
bool displayOnForeground = true,
bool displayOnBackground = true})
: _hideLargeIconOnExpand = hideLargeIconOnExpand,
_progress = progress,
_ticker = ticker,
_badge = badge,
_notificationLayout = notificationLayout,
_displayOnForeground = displayOnForeground,
_displayOnBackground = displayOnBackground,
_locked = locked,
super(
id: id,
channelKey: channelKey,
groupKey: groupKey,
title: title,
body: body,
summary: summary,
wakeUpScreen: wakeUpScreen,
fullScreenIntent: fullScreenIntent,
category: category,
criticalAlert: criticalAlert,
showWhen: showWhen,
payload: payload,
icon: icon,
largeIcon: largeIcon,
bigPicture: bigPicture,
customSound: customSound,
autoDismissible: autoDismissible,
color: color,
actionType: actionType,
backgroundColor: backgroundColor,
roundedBigPicture: roundedBigPicture,
roundedLargeIcon: roundedLargeIcon);