readBlock method

Future<Uint8List> readBlock({
  1. required int blockIndex,
})

Sends the Read Block command to the tag.

This uses MifareClassic#readBlock API on Android.

Implementation

Future<Uint8List> readBlock({
  required int blockIndex,
}) async {
  return channel.invokeMethod('MifareClassic#readBlock', {
    'handle': _tag.handle,
    'blockIndex': blockIndex,
  }).then((value) => value!);
}