copyWith method

ZeytinChapterModel copyWith({
  1. String? id,
  2. String? bookId,
  3. String? title,
  4. String? description,
  5. String? content,
  6. int? order,
  7. DateTime? publishedDate,
  8. Map<String, dynamic>? moreData,
})

Implementation

ZeytinChapterModel copyWith({
  String? id,
  String? bookId,
  String? title,
  String? description,
  String? content,
  int? order,
  DateTime? publishedDate,
  Map<String, dynamic>? moreData,
}) {
  return ZeytinChapterModel(
    id: id ?? this.id,
    bookId: bookId ?? this.bookId,
    title: title ?? this.title,
    description: description ?? this.description,
    content: content ?? this.content,
    order: order ?? this.order,
    publishedDate: publishedDate ?? this.publishedDate,
    moreData: moreData ?? this.moreData,
  );
}