handleRetrieveFeaturesEvent method

Stream<FastAppFeaturesBlocState> handleRetrieveFeaturesEvent()

Implementation

Stream<FastAppFeaturesBlocState> handleRetrieveFeaturesEvent() async* {
  if (isInitialized) {
    yield currentState.copyWith(isRetrievingFeatures: true);

    final features = await _retrieveFeatures();

    addEvent(FastAppFeaturesBlocEvent.featuresRetrieved(features));
  }
}