transceive method

  1. @override
Future<String?> transceive(
  1. String reader,
  2. String capdu
)
override

Implementation

@override
Future<String?> transceive(String reader, String capdu) async {
  final card = readerCardMap[reader];
  if (card == null) {
    throw Exception('Card not connected');
  }
  final apdu = Uint8List.fromList(hex.decode(capdu));
  final rapdu = await card.transmit(apdu);
  return hex.encode(rapdu);
}