isConnected property

  1. @override
Future<bool> get isConnected
override

Checks if there is an active connection to a Bluetooth peripheral.

Implementation

@override
Future<bool> get isConnected async {
  final connected =
      await methodChannel.invokeMethod<bool>('printerIsConnect') ?? false;
  return connected;
}