Skip to content

otoricode/sstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages