copyWith method

  1. @override
NotificationModel copyWith({
  1. String? documentID,
  2. DateTime? timestamp,
  3. String? appId,
  4. String? description,
  5. bool? read,
  6. String? reporterId,
  7. String? assigneeId,
  8. 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,
  );
}