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.

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

Features #

  • Use buildIn package
  • Very simple code

Getting started #

To install this package, follow this instruction.

Usage #

Import this package and use as you need.

import 'package:sstream/sstream.dart';

void main() {
  final SStream<int> count = SStream(0);
  // final count = 0.stream;
  count.listen((event) {
    print(event);
  });
  count.add(1);
  count.add(100);
  print(count.value);
}

Additional information #

6
likes
150
points
40
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