isConnected property

Future<bool> get isConnected

Checks if the device is currently connected.

Implementation

Future<bool> get isConnected async =>
    await UniversalBle.getConnectionState(deviceId) ==
    BleConnectionState.connected;