GeminiModel enum
Available Gemini AI models
Values
- gemini2_0Flash → const GeminiModel
-
const GeminiModel('gemini-2.0-flash') - gemini2_0FlashLite → const GeminiModel
-
const GeminiModel('gemini-2.0-flash-lite') - gemini2_5FlashLite → const GeminiModel
-
const GeminiModel('gemini-2.5-flash-lite') - gemini2_5Pro → const GeminiModel
-
const GeminiModel('gemini-2.5-pro') - gemini2_5Flash → const GeminiModel
-
const GeminiModel('gemini-2.5-flash') - gemini2_5Flashlite → const GeminiModel
-
const GeminiModel('gemini-2.5-flash-lite') - gemini3_0Flash → const GeminiModel
-
const GeminiModel('gemini-3-flash-preview') - gemini3_1Pro → const GeminiModel
-
const GeminiModel('gemini-3.1-pro-preview') - gemini3_1Flashlive → const GeminiModel
-
const GeminiModel('gemini-3.1-flash-live-preview')
Properties
- apiName → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
-
allModelNames
→ List<
String> -
Get all available model names as strings
no setter
Static Methods
-
fromString(
String modelName) → GeminiModel - Convert a string to a GeminiModel
Constants
-
values
→ const List<
GeminiModel> - A constant List of the values in this enum, in order of their declaration.