copyWith method

NiceWikiPage copyWith({
  1. String? id,
  2. String? title,
  3. String? slug,
  4. String? parentId,
  5. String? content,
  6. String? lastEditedBy,
  7. DateTime? lastEditedAt,
  8. List<NiceWikiPage>? children,
})

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