removeOnCardPresentCallback method

void removeOnCardPresentCallback(
  1. void callback()
)
inherited

Removes a callback that was previously added to notify when an RFID card is present.

If you need to stop certain actions from being triggered upon card detection, use this method to unregister the corresponding callback.

Example:

reader.removeOnCardPresentCallback(myCallbackFunction);

Implementation

void removeOnCardPresentCallback(void Function() callback) {
  _onCardPresentCallbacks.remove(callback);
}