ProviderModelChoice class final

A completed provider → model pick: the endpoint, the wire spec, the chosen model id, and the saved registry entry when the provider is a custom one.

Constructors

ProviderModelChoice({required ProviderSpec spec, required String baseUrl, required String modelId, CustomProviderEntry? savedEntry})
Creates the choice bundle.
const

Properties

baseUrl → String
The endpoint the model list was fetched from.
final
hashCode → int
The hash code for this object.
no setterinherited
modelId → String
The picked (or manually entered) model id.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
savedEntry → CustomProviderEntry?
Non-null when the provider is a saved custom-registry entry.
final
spec → ProviderSpec
The chosen provider's catalog spec (api type, wire kind).
final

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