decrement method

Future<void> decrement({
  1. required int blockIndex,
  2. required int value,
})

Sends the Decrement command to the tag.

This uses MifareClassic#decrement API on Android.

Implementation

Future<void> decrement({
  required int blockIndex,
  required int value,
}) async {
  return channel.invokeMethod('MifareClassic#decrement', {
    'handle': _tag.handle,
    'blockIndex': blockIndex,
    'value': value,
  });
}