sstream 1.0.6 copy "sstream: ^1.0.6" to clipboard
sstream: ^1.0.6 copied to clipboard

SStream is a simplified version of StreamController which holds the lastest value broadcasted.

example/sstream_example.dart

import 'package:sstream/sstream.dart';

void main() {
  SStream<int> count = SStream(0);
  count.stream.listen((event) {
    print(event);
  });
  count.add(1);
  count.add(100);
  print(count.value);
}
6
likes
150
points
56
downloads

Publisher

verified publisherotoritech.com

Weekly Downloads

SStream is a simplified version of StreamController which holds the lastest value broadcasted.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on sstream