subscribeToUpdates method

StreamSubscription subscribeToUpdates (void onUpdate(BlocController), { void onError(Error, StackTrace), void onDone() })

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

Implementation

StreamSubscription subscribeToUpdates(void Function(BlocController) onUpdate,
    {void Function(Error, StackTrace) onError, void Function() onDone}) {
  return _subject.listen(onUpdate, onError: onError, onDone: onDone);
}