ModelInfo constructor
ModelInfo({})
Creates a new ModelInfo instance.
name: The unique name for the model (required). kinds: The set of
kinds of model (required, non-empty). displayName: The display name of
the model, if available. description: A description of the model, if
available. extra: Any extra metadata returned by the provider (default:
empty map).
Implementation
ModelInfo({
required this.name,
required this.providerName,
required this.kinds,
this.displayName,
this.description,
this.extra = const {},
}) : assert(kinds.isNotEmpty, 'kinds must not be empty');