copyWith method
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,
);
}