NotificationMessage constructor

const NotificationMessage({
  1. required int notificationId,
  2. required String messageId,
  3. String? title,
  4. String? body,
  5. String? imageUrl,
  6. @Default.new(<String, Object?>{}) Map<String, Object?> data,
  7. @Default.new(<NotificationAction>[]) List<NotificationAction> actions,
  8. @Default.new('fcm_actions_default') String channelId,
  9. String? categoryId,
  10. String? routeType,
  11. String? deepLink,
  12. DateTime? sentAt,
  13. String? topic,
  14. String? collapseKey,
  15. @Default.new(false) bool silent,
  16. @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;