copyWith method

TargetPrinter copyWith({
  1. String? name,
  2. String? host,
  3. String? transport,
  4. bool? isDefault,
  5. String? language,
  6. int? widthDots,
  7. int? paperWidthMm,
  8. int? paperHeightMm,
  9. int? dpi,
  10. bool? compress,
  11. int? plGapMm,
  12. int? plDensity,
  13. int? plDirection,
  14. String? xpCut,
  15. int? xpDensity,
})

Implementation

TargetPrinter copyWith({
  String? name,
  String? host,
  String? transport,
  bool? isDefault,
  String? language,
  int? widthDots,
  int? paperWidthMm,
  int? paperHeightMm,
  int? dpi,
  bool? compress,
  int? plGapMm,
  int? plDensity,
  int? plDirection,
  String? xpCut,
  int? xpDensity,
}) =>
    TargetPrinter(
      name: name ?? this.name,
      host: host ?? this.host,
      transport: transport ?? this.transport,
      isDefault: isDefault ?? this.isDefault,
      language: language ?? this.language,
      widthDots: widthDots ?? this.widthDots,
      paperWidthMm: paperWidthMm ?? this.paperWidthMm,
      paperHeightMm: paperHeightMm ?? this.paperHeightMm,
      dpi: dpi ?? this.dpi,
      compress: compress ?? this.compress,
      plGapMm: plGapMm ?? this.plGapMm,
      plDensity: plDensity ?? this.plDensity,
      plDirection: plDirection ?? this.plDirection,
      xpCut: xpCut ?? this.xpCut,
      xpDensity: xpDensity ?? this.xpDensity,
    );