copyWith method
Implementation
HeaderBlock copyWith({BaseBlock? block}) => HeaderBlock(
depth: block?.depth ?? depth,
start: block?.start ?? this.start,
end: block?.end ?? this.end,
inlineStyles: block?.inlineStyles ?? this.inlineStyles,
entityTypes: block?.entityTypes ?? this.entityTypes,
data: block?.data ?? this.data,
text: block?.text ?? this.text,
blockType: block?.blockType ?? this.blockType,
level: this.level,
children: block?.children ?? children ?? [],
);