onModelsChanged method

void onModelsChanged(
  1. List<ModelEntity> models
)

Implementation

void onModelsChanged(List<ModelEntity> models) {
  emit(state.copyWith(
      models: Map.fromEntries(models.map((m) => MapEntry(m.id, m)))));
}