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