isNfcAvailable method

Future<bool> isNfcAvailable()

Check if NFC is available on the device

Implementation

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