isConnected property

bool get isConnected

Returns true if this device is currently connected to your app

Implementation

bool get isConnected {
  if (FlutterBluePlus._connectionStates[remoteId] == null) {
    return false;
  } else {
    var state = FlutterBluePlus._connectionStates[remoteId]!.connectionState;
    return state == BmConnectionStateEnum.connected;
  }
}