copyWith method
Implementation
NotificationModel copyWith({
int? id,
String? header,
String? content,
dynamic messageId,
dynamic orderId,
bool? seen,
DateTime? createdAt,
}) =>
NotificationModel(
id: id ?? this.id,
header: header ?? this.header,
content: content ?? this.content,
messageId: messageId ?? this.messageId,
orderId: orderId ?? this.orderId,
seen: seen ?? this.seen,
createdAt: createdAt ?? this.createdAt,
);