isConnected property

bool get isConnected
inherited

Indicates whether the RFID reader is currently connected.

Returns a boolean value representing the connection status of the RFID reader. True indicates that the reader is connected, while false indicates it is not.

Example

if (reader.isConnected) {
  print('The reader is connected.');
} else {
  print('The reader is not connected.');
}

Note: This property can be polled or checked before attempting operations that require an active connection to the RFID reader.

Implementation

bool get isConnected {
  return _isConnected;
}