checkedSicUid method
Implementation
Future<bool> checkedSicUid(NfcTag tag) async {
// ignore: non_constant_identifier_names
Uint8List SICID = Uint8List.fromList([Sic431XFlag.SIC_UID_0]);
if (Platform.isAndroid) {
NfcA? nfcA = NfcA.from(tag);
if (nfcA != null) {
Uint8List sicId = nfcA.identifier.sublist(0, 1);
if ((sicId.first == SICID.first)) {
return true;
} else {
return false;
}
}
} else if (Platform.isIOS) {
MiFare? miFare = MiFare.from(tag);
if (miFare != null) {
Uint8List sicId = miFare.identifier.sublist(0, 1);
if ((sicId.first == SICID.first)) {
return true;
} else {
return false;
}
}
}
return false;
}