copyWith method

NotificationModel copyWith({
  1. int? id,
  2. String? header,
  3. String? content,
  4. dynamic messageId,
  5. dynamic orderId,
  6. bool? seen,
  7. DateTime? createdAt,
})

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,
    );