copyWith method
Implementation
NiceWikiPage copyWith({
String? id,
String? title,
String? slug,
String? parentId,
String? content,
String? lastEditedBy,
DateTime? lastEditedAt,
List<NiceWikiPage>? children,
}) {
return NiceWikiPage(
id: id ?? this.id,
title: title ?? this.title,
slug: slug ?? this.slug,
parentId: parentId ?? this.parentId,
content: content ?? this.content,
lastEditedBy: lastEditedBy ?? this.lastEditedBy,
lastEditedAt: lastEditedAt ?? this.lastEditedAt,
children: children ?? this.children,
);
}