copyWith method
Implementation
@override
DocumentStyle copyWith(DocumentStyle other) {
return DocumentStyle(
width: other.width ?? width,
height: other.height ?? height,
padding: other.padding,
background: merge(other.background, background)! as BackgroundStyle,
paragraph: merge(other.paragraph, paragraph)! as BlockStyle,
header1: merge(other.header1, header1)! as BlockStyle,
header2: merge(other.header2, header2)! as BlockStyle,
header3: merge(other.header3, header3)! as BlockStyle,
header4: merge(other.header4, header4)! as BlockStyle,
header5: merge(other.header5, header5)! as BlockStyle,
header6: merge(other.header6, header6)! as BlockStyle,
);
}