success method
Implementation
void success(List<FeatureEnvironmentCollection> environments) {
final states = <FeatureState>[];
environments.forEach((e) {
e.features.forEach((f) {
f.environmentId = e.id;
});
states.addAll(e.features);
});
_repository.notify(SSEResultState.features, states);
}