connect method

  1. @override
Future<CardConnection> connect()
override

Connects to the chip, for a CardWatcher or an IcaoWatcher.

Implementation

@override
Future<CardConnection> connect() async {
  if (!_inserted) {
    throw const CardTransportException('No chip on the simulated reader');
  }
  return _SimulatedConnection(this, _insertions);
}