selectFile method
Sends SELECT FILE command to ICC. Can throw ICCError or ComProviderError.
Implementation
Future<Uint8List?> selectFile(
{required int p1,
required int p2,
int cla = ISO7816_CLA.NO_SM,
Uint8List? data,
int ne = 0}) async {
final rapdu = await _transceive(CommandAPDU(
cla: cla,
ins: ISO7816_INS.SELECT_FILE,
p1: p1,
p2: p2,
data: data,
ne: ne));
if (rapdu.status != StatusWord.success) {
throw ICCError("Select File failed", rapdu.status, rapdu.data);
}
return rapdu.data;
}