BluetoothPrinterManager class

Bluetooth Printer

Inheritance

Constructors

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

Properties

address String?
getter/setter pairinherited
bluetooth ↔ BlueThermalPrinter
getter/setter pair
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
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 bluetooth 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<BluetoothPrinter>>
discover let you explore all bluetooth printer nearby your device