handleLoadMetadataEvent method

  1. @protected
Stream<S> handleLoadMetadataEvent()

Handles the load metadata event by loading the calculator metadata. Emits the new state.

Implementation

@protected
Stream<S> handleLoadMetadataEvent() async* {
  final metadata = await loadMetadata();
  final newMetadata = mergeMetadata(metadata);

  yield currentState.copyWith(metadata: newMetadata) as S;

  addComputeEvent();
}