replaceModelsFrom method

void replaceModelsFrom(
  1. DatasetChatModelController other
)

Implementation

void replaceModelsFrom(DatasetChatModelController other) {
  _models = [for (final model in other.models) model.copyWith()];
  _activeModel = other.activeModel?.copyWith();
  _activeModality = other.activeModality;
  _activeVoice = other.activeVoice;
  _notifyChanged();
}