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

outdated

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
0
points
49
downloads

Publisher

verified publisherotoritech.com

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on sstream