copyWith method
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,
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);
}