selectFileByPath method

Future<Uint8List?> selectFileByPath({
  1. required Uint8List path,
  2. required bool fromMF,
  3. int p2 = 0,
  4. int cla = ISO7816_CLA.NO_SM,
  5. int ne = 0,
})

Selects file by path. If fromMF is true, then file is selected by path starting from MF, otherwise from currentDF. path must not include MF/Current DF ID. Can throw ICCError or ComProviderError.

Implementation

Future<Uint8List?> selectFileByPath({ required Uint8List path, required bool fromMF, int p2 = 0, int cla = ISO7816_CLA.NO_SM, int ne = 0 }) async {
  final p1 = fromMF ? ISO97816_SelectFileP1.byPathFromMF : ISO97816_SelectFileP1.byPath;
  return await selectFile(cla: cla, p1: p1, p2: p2, data: path, ne: ne);
}