https://github.com/otoricode/sstream
https://github.com/otoricode/sstream
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/otoricode/sstream
- Owner: otoricode
- License: mit
- Created: 2022-05-28T00:23:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T13:37:58.000Z (over 3 years ago)
- Last Synced: 2025-10-23T07:01:51.975Z (8 months ago)
- Language: Dart
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://pub.dev/packages/sstream/install).
## Usage
Import this package and use as you need.
```dart
import 'package:sstream/sstream.dart';
void main() {
final SStream count = SStream(0);
// final count = 0.stream;
count.listen((event) {
print(event);
});
count.add(1);
count.add(100);
print(count.value);
}
```
## Additional information