writeSingleBlock method
Future<void>
writeSingleBlock({
- required Set<
Iso15693RequestFlag> requestFlags, - required int blockNumber,
- required Uint8List dataBlock,
Sends the Write Single Block command to the tag.
This uses NFCISO15693Tag#writeSingleBlock API on iOS.
Implementation
Future<void> writeSingleBlock({
required Set<Iso15693RequestFlag> requestFlags,
required int blockNumber,
required Uint8List dataBlock,
}) async {
return channel.invokeMethod('Iso15693#writeSingleBlock', {
'handle': _tag.handle,
'requestFlags':
requestFlags.map((e) => $Iso15693RequestFlagTable[e]).toList(),
'blockNumber': blockNumber.toUnsigned(8),
'dataBlock': dataBlock,
});
}