isCardPresent property
Indicates whether an RFID card is currently present within the reader's detection field.
Returns a boolean value that is true if an RFID card is detected by the reader, and false otherwise.
Example
if (reader.isCardPresent) {
print('An RFID card is present.');
} else {
print('No RFID card detected.');
}
Note: This property is useful for triggering card-specific operations, such as reading or writing data, only when a card is physically present.
Implementation
bool get isCardPresent {
return _isCardPresent;
}