copyWith method

PosStyles copyWith({
  1. bool? bold,
  2. bool? reverse,
  3. bool? underline,
  4. bool? turn90,
  5. PosAlign? align,
  6. PosTextSize? height,
  7. PosTextSize? width,
  8. PosFontType? fontType,
  9. String? codeTable,
})

Implementation

PosStyles copyWith({
  bool? bold,
  bool? reverse,
  bool? underline,
  bool? turn90,
  PosAlign? align,
  PosTextSize? height,
  PosTextSize? width,
  PosFontType? fontType,
  String? codeTable,
}) {
  return PosStyles(
    bold: bold ?? this.bold,
    reverse: reverse ?? this.reverse,
    underline: underline ?? this.underline,
    turn90: turn90 ?? this.turn90,
    align: align ?? this.align,
    height: height ?? this.height,
    width: width ?? this.width,
    fontType: fontType ?? this.fontType,
    codeTable: codeTable ?? this.codeTable,
  );
}