GeminiModel enum

Available Gemini AI models

Inheritance
Available extensions

Values

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')
gemini3_0Pro → const GeminiModel
const GeminiModel('gemini-3-pro-preview')
gemini3_0Flash → const GeminiModel
const GeminiModel('gemini-3-flash-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.