copyWith method

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

Implementation

PosStyles copyWith({
  bool? bold,
  bool? reverse,
  bool? underline,
  bool? turn90,
  PosAlign? align,
  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,
  );
}