isNfcEnabled method

Future<bool> isNfcEnabled()

Check if NFC is enabled on the device

Implementation

Future<bool> isNfcEnabled() async {
  try {
    return await _plugin.isNfcEnabled();
  } catch (e) {
    print('Error checking NFC enabled status: $e');
    return false;
  }
}