FlutterThermalPrinterNetwork class
Optimized network thermal printer with improved connection management
Constructors
- FlutterThermalPrinterNetwork.new(String host, {int port = 9100, Duration timeout = const Duration(seconds: 5)})
Properties
- connectionInfo → String
-
Get connection info
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Check if currently connected
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
{Duration? timeout}) → Future< NetworkPrintResult> - Connect to network printer with improved error handling
-
disconnect(
{Duration? timeout}) → Future< NetworkPrintResult> - Disconnect with proper resource cleanup
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printTicket(
List< int> data, {bool isDisconnect = true}) → Future<NetworkPrintResult> - Print data with automatic connection management
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited