Skip to content

Instantly share code, notes, and snippets.

@Vanethos
Created May 6, 2019 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vanethos/24b3188f7dd84cea66c34adacbdb1659 to your computer and use it in GitHub Desktop.
Save Vanethos/24b3188f7dd84cea66c34adacbdb1659 to your computer and use it in GitHub Desktop.
abstract class BaseBloc {
/// relays error information
final _errorSubject = PublishSubject<String>();
Sink<String> get errorSink => _errorSubject.sink;
Stream<String> get errorStream => _errorSubject.stream;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment