lockAfi method

Future<void> lockAfi({
  1. required Set<Iso15693RequestFlag> requestFlags,
})

Sends the Lock AFI command to the tag.

This uses NFCISO15693Tag#lockAFI API on iOS.

Implementation

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