isAvailable method

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

Checks if the device supports Gemini Nano via AICore.

Implementation

@override
Future<bool> isAvailable() async {
  try {
    final bool? result =
        await methodChannel.invokeMethod<bool>('isAvailable');
    return result ?? false;
  } on PlatformException catch (_) {
    return false;
  }
}