Skip to content

Instantly share code, notes, and snippets.

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