copyWith method
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,
})
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,
);