GeminiAI class
Constructors
-
GeminiAI({required String apiKey, GenerationConfig? config, List<
SafetySettings> ? safetySettings, String? model})
Properties
- apiKey ↔ String
-
getter/setter pair
- config ↔ GenerationConfig?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- model ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
safetySettings
↔ List<
SafetySettings> ? -
getter/setter pair
Methods
-
generateTextFromQuery(
String query) → Future< GeminiAIResponse> -
generateTextFromQueryAndImages(
{required String query, required File image}) → Future< GeminiAIResponse> -
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