copyWith method
NotificationModel
copyWith({
- String? documentID,
- DateTime? timestamp,
- String? appId,
- String? description,
- bool? read,
- String? reporterId,
- String? assigneeId,
- NotificationStatus? status,
override
Implementation
@override
NotificationModel copyWith({
String? documentID,
DateTime? timestamp,
String? appId,
String? description,
bool? read,
String? reporterId,
String? assigneeId,
NotificationStatus? status,
}) {
return NotificationModel(
documentID: documentID ?? this.documentID,
timestamp: timestamp ?? this.timestamp,
appId: appId ?? this.appId,
description: description ?? this.description,
read: read ?? this.read,
reporterId: reporterId ?? this.reporterId,
assigneeId: assigneeId ?? this.assigneeId,
status: status ?? this.status,
);
}