Printer constructor
Printer({
- required String name,
- required PrinterStatus status,
- required String hot,
- required String version,
- required String id,
- required String cutter,
- required String density,
- required String distance,
- required String gray,
- required String paper,
- required String type,
- required Future<
PrinterStatus> getStatus(), - required Future<
void> openCashDrawer(), - required Future<
bool> isCashDrawerOpen(), - required Future<
void> printEscPosCommands(- Uint8List commands
- required Future<
void> waitForCashDrawerClose(),
Implementation
Printer({
required this.name,
required this.status,
required this.hot,
required this.version,
required this.id,
required this.cutter,
required this.density,
required this.distance,
required this.gray,
required this.paper,
required this.type,
required this.getStatus,
required this.openCashDrawer,
required this.isCashDrawerOpen,
required this.printEscPosCommands,
required this.waitForCashDrawerClose,
});