NotificationMessage constructor
const
NotificationMessage({
- required int notificationId,
- required String messageId,
- String? title,
- String? body,
- String? imageUrl,
- @Default.new(<String, Object?>{}) Map<
String, Object?> data, - @Default.new(<NotificationAction>[]) List<
NotificationAction> actions, - @Default.new('fcm_actions_default') String channelId,
- String? categoryId,
- String? routeType,
- String? deepLink,
- DateTime? sentAt,
- String? topic,
- String? collapseKey,
- @Default.new(false) bool silent,
- @Default.new(<String, Object?>{}) Map<
String, Object?> rawJson,
Implementation
const factory NotificationMessage({
required int notificationId,
required String messageId,
String? title,
String? body,
String? imageUrl,
@Default(<String, Object?>{}) Map<String, Object?> data,
@Default(<NotificationAction>[]) List<NotificationAction> actions,
@Default('fcm_actions_default') String channelId,
String? categoryId,
String? routeType,
String? deepLink,
DateTime? sentAt,
String? topic,
String? collapseKey,
@Default(false) bool silent,
@Default(<String, Object?>{}) Map<String, Object?> rawJson,
}) = _NotificationMessage;