extendsStyle method

PrinterTextStyle extendsStyle(
  1. PrinterTextStyle style
)

Implementation

PrinterTextStyle extendsStyle(PrinterTextStyle style) {
  return PrinterTextStyle(
    align: this.align ?? style.align,
    fontType: this.fontType ?? style.fontType,
    fontSize: this.fontSize ?? style.fontSize,
    fontBlod: this.fontBlod ?? style.fontBlod,
    underline: this.underline ?? style.underline,
    lineSpace: this.lineSpace ?? style.lineSpace,
    lineHeight: this.lineHeight ?? style.lineHeight,
  );
}