NetworkPrinterManager class

Network Printer

Inheritance

Constructors

NetworkPrinterManager.new(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
socket Socket?
getter/setter pair

Methods

connect({Duration? timeout = const Duration(seconds: 5)}) Future
connect let you connect to a network printer
override
disconnect({Duration? timeout}) Future
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) Future
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