copyWith method
Returns a copy with selected document parts replaced.
Implementation
OkfDocument copyWith({
Map<String, Object?>? frontmatter,
String? body,
bool? hasFrontmatter,
}) =>
OkfDocument(
frontmatter: frontmatter ?? this.frontmatter,
body: body ?? this.body,
hasFrontmatter: hasFrontmatter ?? this.hasFrontmatter,
);