Skip to content

Instantly share code, notes, and snippets.

@diefferson
Created March 4, 2021 01:34
Show Gist options
  • Save diefferson/00703d617f545a969f7116d694a3b1eb to your computer and use it in GitHub Desktop.
Save diefferson/00703d617f545a969f7116d694a3b1eb to your computer and use it in GitHub Desktop.
class CounterBloc {
final _counterSubject = BehaviorSubject<Int>();
Stream<Int> get counterStream => _counterSubject.stream;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment