TargetPrinter class

One configured printer, superprinter_flutter's shape and defaults.

Constructors

TargetPrinter({required String name, required String host, String transport = PrinterTransport.network, bool isDefault = false, String language = PrinterLanguage.escpos, int widthDots = 384, int paperWidthMm = 0, int paperHeightMm = 0, int dpi = 203, bool compress = false, int plGapMm = 2, int plDensity = 8, int plDirection = 0, String xpCut = 'partial', int xpDensity = 0})
const
TargetPrinter.fromJson(Map<String, dynamic> j)
factory

Properties

compress → bool
final
dpi → int
final
hashCode → int
The hash code for this object.
no setterinherited
host → String
final
isDefault → bool
final
language → String
final
name → String
final
paperHeightMm → int
final
paperWidthMm → int
final
plDensity → int
final
plDirection → int
final
plGapMm → int
final
rasterizes → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transport → String
final
widthDots → int
final
xpCut → String
final
xpDensity → int
final

Methods

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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toSprint() → TargetPrinter
The same printer as sPrint takes it.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited