isNfcEnabled method

  1. @override
Future<bool> isNfcEnabled()
override

Check if NFC is enabled on the device

Implementation

@override
Future<bool> isNfcEnabled() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('isNfcEnabled');
    return result ?? false;
  } catch (e) {
    print('Error checking NFC enabled status: $e');
    return false;
  }
}