sendMiFareIso7816Command method
Sends the ISO7816 APDU to the tag.
This uses NFCMiFareTag#sendMiFareISO7816Command API on iOS.
Implementation
Future<Iso7816ResponseApdu> sendMiFareIso7816Command({
required int instructionClass,
required int instructionCode,
required int p1Parameter,
required int p2Parameter,
required Uint8List data,
required int expectedResponseLength,
}) async {
return channel.invokeMethod('MiFare#sendMiFareIso7816Command', {
'handle': _tag.handle,
'instructionClass': instructionClass,
'instructionCode': instructionCode,
'p1Parameter': p1Parameter,
'p2Parameter': p2Parameter,
'data': data,
'expectedResponseLength': expectedResponseLength,
}).then((value) => $GetIso7816ResponseApdu(Map.from(value)));
}