checkDeviceNfcState method
Checks device's NFC state
Implementation
@override
Future<NfcState> checkDeviceNfcState() async {
final state = await methodChannel.invokeMethod<bool?>('checkNfc');
switch (state) {
case true:
return NfcState.enabled;
case false:
return NfcState.disabled;
default:
return NfcState.notSupported;
}
}