success method

void success(
  1. List<FeatureEnvironmentCollection> environments
)

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