copyWith method

NotificationMessageData copyWith({
  1. int? id,
  2. String? title,
  3. String? message,
  4. DateTime? createDateTime,
  5. bool? read,
  6. String? type,
})

Implementation

NotificationMessageData copyWith({
  int? id,
  String? title,
  String? message,
  DateTime? createDateTime,
  bool? read,
  String? type,
}) => NotificationMessageData(
  id: id ?? this.id,
  title: title ?? this.title,
  message: message ?? this.message,
  createDateTime: createDateTime ?? this.createDateTime,
  read: read ?? this.read,
  type: type ?? this.type,
);