handleEnableFeaturesEvent method

Stream<FastAppFeaturesBlocState> handleEnableFeaturesEvent(
  1. List<FastFeatureEntity> features
)

Implementation

Stream<FastAppFeaturesBlocState> handleEnableFeaturesEvent(
  List<FastFeatureEntity> features,
) async* {
  if (isInitialized) {
    await _dataProvider.enableFeatures(features);
    yield currentState.copyWith(features: await _retrieveFeatures());
  }
}