subscribeToMutations method

StreamSubscription subscribeToMutations (void onMutate(BlocState), { void onError(Error, StackTrace), void onDone() })

Registers the given callback methods with the underlying stream and returns the resulting StreamSubscription.

Implementation

StreamSubscription subscribeToMutations(void Function (BlocState) onMutate, { void Function(Error, StackTrace) onError, void Function() onDone }) {
  return _subject.listen(onMutate, onError: onError, onDone: onDone);
}