getAtr method

Future<List<int>?> getAtr()
inherited

Retrieves the Answer to Reset (ATR) from the RFID tag or smart card.

Returns

A list of integers representing the ATR, or null if the ATR could not be retrieved.

Implementation

Future<List<int>?> getAtr() async {
  final atr = await FlutterRfidPlatform.instance.getAtr();

  if (atr == null) {
    return null;
  }

  return atr.toList();
}