UNotificationRequest constructor
const
UNotificationRequest({
- required int id,
- String? title,
- String? body,
- String? subtitle,
- Map<
String, Object?> ? payload, - String? image,
- String? largeIcon,
- String? channelId,
- UNotificationImportance importance = UNotificationImportance.high,
- String? group,
- bool groupSummary = false,
- List<
UNotificationAction> actions = const <UNotificationAction>[], - UNotificationProgress? progress,
- bool ongoing = false,
- bool autoCancel = true,
- bool silent = false,
- String? sound,
- int? badge,
- int? color,
- Duration? timeout,
- bool fullScreen = false,
- UNotificationVisibility visibility = UNotificationVisibility.private,
- List<
String> lines = const <String>[], - bool chronometer = false,
- DateTime? when,
- UNotificationInterruption interruption = UNotificationInterruption.active,
- double? relevance,
- 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,
});