lockBlock method

Future<void> lockBlock({
  1. required Set<Iso15693RequestFlag> requestFlags,
  2. required int blockNumber,
})

Sends the Lock Block command to the tag.

This uses NFCISO15693Tag#lockBlock API on iOS.

Implementation

Future<void> lockBlock({
  required Set<Iso15693RequestFlag> requestFlags,
  required int blockNumber,
}) async {
  return channel.invokeMethod('Iso15693#lockBlock', {
    'handle': _tag.handle,
    'requestFlags':
        requestFlags.map((e) => $Iso15693RequestFlagTable[e]).toList(),
    'blockNumber': blockNumber.toUnsigned(8),
  });
}