PushNotificationModel constructor

PushNotificationModel({
  1. required String title,
  2. String? body,
  3. required DateTime? createdAt,
  4. Map<String, dynamic>? rawMeta,
  5. PushNotificationMetadata? meta,
  6. String? collapseKey,
})

Implementation

factory PushNotificationModel({
  // [void Function(PushNotificationModelBuilder) updates]
  required String title,
  String? body,
  // required String type,
  required DateTime? createdAt,
  Map<String, dynamic>? rawMeta,
  PushNotificationMetadata? meta,
  String? collapseKey,
}) =>
    _$PushNotificationModel((b) {
      b
        ..collapseKey = collapseKey
        ..title = title
        ..body = body
        // ..type = type
        ..createdAt = createdAt
        ..rawMeta = rawMeta
        ..meta = meta;
    });