FlutterGeminiNanoPlatform class abstract

Base platform interface for the flutter_gemini_nano plugin.

This class defines the contract that all platform implementations must follow. By default, the plugin uses MethodChannelFlutterGeminiNano as its implementation.

The PlatformInterface pattern ensures that only authorized implementations can replace the active platform instance.

Inheritance
  • Object
  • PlatformInterface
  • FlutterGeminiNanoPlatform
Implementers

Constructors

FlutterGeminiNanoPlatform()
Creates a new platform interface instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

geminiNano({required String prompt, Uint8List? imageBytes, double? temperature, int? seed, int? topK, int? candidateCount, int? maxOutputTokens}) Future<Map<String, dynamic>>
Executes a Gemini Nano request on the underlying platform.
isGeminiNanoAvailable() Future<bool>
Checks whether Gemini Nano is available on the current device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance FlutterGeminiNanoPlatform
The current platform-specific implementation.
getter/setter pair