copyWith method

  1. @override
AppNotificationModel copyWith({
  1. String? id,
  2. String? type,
  3. String? content,
  4. String? title,
  5. DateTime? readAt,
  6. DateTime? createdAt,
  7. Map<String, dynamic>? rawMeta,
  8. covariant AppNotificationMetadataModel? typedMeta,
  9. String? status,
  10. String? userId,
})
override

Implementation

@override
AppNotificationModel copyWith({
  String? id,
  String? type,
  String? content,
  String? title,
  DateTime? readAt,
  DateTime? createdAt,
  Map<String, dynamic>? rawMeta,
  covariant AppNotificationMetadataModel? typedMeta,
  String? status,
  String? userId,
}) {
  return AppNotificationModel((b) => b
    ..id = id ?? this.id
    ..type = type ?? this.type
    ..content = content ?? this.content
    ..title = title ?? this.title
    ..readAt = readAt ?? this.readAt
    ..createdAt = createdAt ?? this.createdAt
    ..rawMeta = rawMeta ?? this.rawMeta
    ..typedMeta = typedMeta ?? this.typedMeta
    ..status = status ?? this.status
    ..userId = userId ?? this.userId);
}