An open API service indexing awesome lists of open source software.

https://github.com/otoricode/sstream


https://github.com/otoricode/sstream

Last synced: 4 months ago
JSON representation

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