File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1111[ ![ GitHub] ( https://img.shields.io/github/license/hoc081098/disposebag?color=4EB1BA )] ( https://opensource.org/licenses/MIT )
1212[ ![ Style] ( https://img.shields.io/badge/style-pedantic-40c4ff.svg )] ( https://github.com/dart-lang/pedantic )
1313
14- A package to help disposing Streams and closing Sinks
14+ A package helps to cancel StreamSubscriptions and close Sinks.
1515
1616## Usage
1717
@@ -24,7 +24,7 @@ import 'dart:async';
2424main() async {
2525 final controllers = <StreamController>[];
2626 final subscriptions = <StreamSubscription>[];
27-
27+
2828 final bag = DisposeBag([...subscriptions, ...controllers]);
2929
3030 await Stream.value(3).listen(null).disposedBy(bag);
Original file line number Diff line number Diff line change 11name : disposebag
2- description : A package to help disposing Streams and closing Sinks easily .
2+ description : A package helps to cancel StreamSubscriptions and close Sinks.
33version : 1.5.0-nullsafety.1
4+ author : Petrus Nguyen Thai Hoc <hoc081098@gmail.com>
45homepage : https://github.com/hoc081098/disposebag.git
56repository : https://github.com/hoc081098/disposebag.git
67issue_tracker : https://github.com/hoc081098/disposebag/issues
You can’t perform that action at this time.
0 commit comments