clearFlag method
Implementation
Future<bool> clearFlag(NfcTag tag) async {
Uint8List? receive;
try {
try {
receive = await sendCommand(tag, Uint8List.fromList([0xB4, 0xFF]));
} catch (e) {
if (kDebugMode) {
print(e.toString());
}
return false;
}
if (receive![0] != (0x1A)) {
if (kDebugMode) {
print('Error (clearFlag) : Tag was lost.');
}
return false;
}
return true;
} catch (e) {
if (kDebugMode) {
print('Error (clearFlag) : $e');
}
return false;
}
}