copyWith method

PrinterTextStyle copyWith({
  1. int? fontBaseWidth,
  2. int? fontBaseHeight,
  3. AlignEnum? align,
  4. String? fontType,
  5. int? fontSize,
  6. bool? fontBlod,
  7. bool? underline,
  8. int? lineSpace,
  9. double? lineHeight,
})

Implementation

PrinterTextStyle copyWith(
   {int? fontBaseWidth,
    int? fontBaseHeight,
    AlignEnum? align,
    String? fontType,
    int? fontSize,
    bool? fontBlod,
    bool? underline,
    int? lineSpace,
    double? lineHeight}) {
  return PrinterTextStyle(
    align: align ?? this.align,
    fontType: fontType ?? this.fontType,
    fontSize: fontSize ?? this.fontSize,
    fontBlod: fontBlod ?? this.fontBlod,
    underline: underline ?? this.underline,
    lineSpace: lineSpace ?? this.lineSpace,
    lineHeight: lineHeight ?? this.lineHeight,
  );
}