copyWith method
KeyMetadata
copyWith({
- int? headerLevel,
- DividerMeta? divider,
- CalloutMeta? callout,
- CodeBlockMeta? codeBlock,
- ListMeta? listMeta,
- TableMeta? tableMeta,
- EmphasisMeta? emphasis,
- XmlMeta? xmlMeta,
- YamlMeta? yamlMeta,
- JsonMeta? jsonMeta,
- WhitespaceMeta? whitespace,
- Map<
String, KeyMetadata> ? children,
Creates a copy with updated values.
Implementation
KeyMetadata copyWith({
int? headerLevel,
DividerMeta? divider,
CalloutMeta? callout,
CodeBlockMeta? codeBlock,
ListMeta? listMeta,
TableMeta? tableMeta,
EmphasisMeta? emphasis,
XmlMeta? xmlMeta,
YamlMeta? yamlMeta,
JsonMeta? jsonMeta,
WhitespaceMeta? whitespace,
Map<String, KeyMetadata>? children,
}) {
return KeyMetadata(
headerLevel: headerLevel ?? this.headerLevel,
divider: divider ?? this.divider,
callout: callout ?? this.callout,
codeBlock: codeBlock ?? this.codeBlock,
listMeta: listMeta ?? this.listMeta,
tableMeta: tableMeta ?? this.tableMeta,
emphasis: emphasis ?? this.emphasis,
xmlMeta: xmlMeta ?? this.xmlMeta,
yamlMeta: yamlMeta ?? this.yamlMeta,
jsonMeta: jsonMeta ?? this.jsonMeta,
whitespace: whitespace ?? this.whitespace,
children: children ?? this.children,
);
}