sendMiFareIso7816Command method
Implementation
Future<Iso7816ResponseApduIos> sendMiFareIso7816Command({
required int instructionClass,
required int instructionCode,
required int p1Parameter,
required int p2Parameter,
required Uint8List data,
required int expectedResponseLength,
}) {
return hostApi
.miFareSendMiFareISO7816Command(
handle: _handle,
apdu: Iso7816ApduPigeon(
instructionClass: instructionClass,
instructionCode: instructionCode,
p1Parameter: p1Parameter,
p2Parameter: p2Parameter,
data: data,
expectedResponseLength: expectedResponseLength,
),
)
.then(
// ignore: invalid_use_of_visible_for_testing_member
(value) => Iso7816ResponseApduIos(
payload: value.payload,
statusWord1: value.statusWord1,
statusWord2: value.statusWord2,
),
);
}