BluetoothPrinterManager class

Bluetooth Printer

Inheritance

Constructors

BluetoothPrinterManager.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

Methods

connect({Duration? timeout = const Duration(seconds: 5)}) Future
connect let you connect to a bluetooth 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> bytes, {Duration? timeout = const Duration(milliseconds: 20)}) 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<BluetoothPrinter>>
discover let you explore all bluetooth printer nearby your device