writeBlock method
Sends the Write Block command to the tag.
This uses MifareClassic#writeBlock API on Android.
Implementation
Future<void> writeBlock({
required int blockIndex,
required Uint8List data,
}) async {
return channel.invokeMethod('MifareClassic#writeBlock', {
'handle': _tag.handle,
'blockIndex': blockIndex,
'data': data,
});
}