flutter_nfc_kit
flutter_nfc_kit copied to clipboard
How to check if device have NFC ?
there are two checks that i want to implement -
1- check if user's device have NFC 2- check if user's has disabled or enabled the NFC
Note- available method only provide if the NFC is enable or disabled, what about the first check
The method gives an enumeration that already shows support and current operation of the NFC module on the device
enum NFCAvailability {
not_supported,
disabled,
available,
}
final NFCAvailability nfcAvailability = await FlutterNfcKit.nfcAvailability;