USBPrinterManager class
USB Printer
- Inheritance
-
- Object
- PrinterManager
- USBPrinterManager
Constructors
- USBPrinterManager(POSPrinter printer)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- printer ↔ POSPrinter
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usbPrinter ↔ DragoUsbPrinter
-
usb_serial
getter/setter pair
Methods
-
checkStatus(
List< int> job) → Future<PrinterReadiness> -
Asks the printer whether it can take
job(Android only; uses the vendor/product id stored by connect). PrinterReadiness.unknown on any error, timeout or other platform. -
connect(
{Duration? timeout = const Duration(seconds: 5)}) → Future -
override
-
disconnect(
{Duration? timeout}) → Future -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pair(
POSPrinter device) → Future< void> -
override
-
scan(
) → Stream< POSPrinter> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeBytes(
List< int> data, {int? vendorId, int? productId}) → Future -
Writes
dataas one RAW spooler job (Windows) or bulk transfer (Android). Uses the connection opened by connect; if none is open, opens one for this write and closes it again afterwards.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
discover(
) → Future< List< USBPrinter> > - discover let you explore all netWork printer in your network