copyWith method
Implementation
PrinterConfig copyWith({PrinterTextStyle? fontStyle, PageInfo? pageInfo}) {
if (fontStyle != null) {
if (this.fontStyle != null) {
fontStyle = fontStyle.extendsStyle(this.fontStyle!);
}
}
if (pageInfo != null) {
if (this.pageInfo != null) {
pageInfo = pageInfo.extendsStyle(this.pageInfo!);
}
}
return PrinterConfig(
fontStyle: fontStyle ?? this.fontStyle,
pageInfo: pageInfo ?? this.pageInfo
);
}