NetworkPrinterManager class

Network Printer

Inheritance

Constructors

NetworkPrinterManager(POSPrinter printer, dynamic paperSize, dynamic profile, {int spaceBetweenRows = 5, int port = 9100})

Properties

address ↔ String?
getter/setter pairinherited
deviceId ↔ int?
getter/setter pairinherited
generator ↔ dynamic
getter/setter pairoverride
hashCode → int
The hash code for this object.
no setterinherited
isConnected ↔ bool
getter/setter pairinherited
paperSize ↔ dynamic
getter/setter pairinherited
port ↔ int
getter/setter pairinherited
printer ↔ POSPrinter
getter/setter pairinherited
productId ↔ int?
getter/setter pairinherited
profile ↔ dynamic
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
socket ↔ Socket?
getter/setter pair
spaceBetweenRows ↔ int
getter/setter pairinherited
vendorId ↔ int?
getter/setter pairinherited

Methods

connect({Duration? timeout = const Duration(seconds: 5)}) → Future<ConnectionResponse>
connect let you connect to a network printer
override
disconnect({Duration? timeout}) → Future<ConnectionResponse>
timeout: milliseconds to wait after closing the socket
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
writeBytes(List<int> data, {bool isDisconnect = true}) → Future<ConnectionResponse>
writeBytes let you write raw list int data into socket
override

Operators

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

Static Methods

discover() → Future<List<NetWorkPrinter>>
discover let you explore all netWork printer in your network