GeminiServices class
A service class to interact with the Gemini API, including validating API keys and generating AI-powered responses to user queries.
Constructors
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
-
checkAPIValidity(
String apiKey, BuildContext context) → Future< String> - Validates the provided API key by sending a test query to the Gemini API.
-
generateStreamAnswer(
String userQuery, String apiKey) → Stream - Generates a stream of AI-powered responses based on the user's query.
-
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