ModelInfo constructor

ModelInfo({
  1. required String name,
  2. required String providerName,
  3. required Set<ModelKind> kinds,
  4. String? displayName,
  5. String? description,
  6. Map<String, dynamic> extra = const {},
})

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');