subx

Creator: coderz1093

Last updated:

0 purchases

subx Image
subx Images

Languages

Categories

Add to Cart

Description:

subx

SubX #

RxDart Subscriptions management.
Provide Apis to store and manage RxDart subscriptions and provide methods to unsubscribe them all.
Prerequisites #
The project has dependencies that require the Dart SDK 2.0
Contents #

Changelog
SubxList

API Reference


SubxMap

API Reference


License

SubxList #
Object that holds and manages a list of Subscriptions.
Usage #
import 'package:rxdart/rxdart.dart';
import 'package:subx/subx.dart';

SubxList subxList = SubxList();
BehaviorSubject source = BehaviorSubject();

StreamSubscription subscription = source.listen((data) {...});
StreamSubscription subscription2 = source.listen((data) {...});

subxList.add(subscription);
subxList.add(subscription2);

...

subxList.unsubscribeAll();
copied to clipboard
API Reference
SubxMap #
Object that holds and manages Key-Subscription pairs.
import 'package:rxdart/rxdart.dart';
import 'package:subx/subx.dart';

SubxList subxList = SubxList();
BehaviorSubject source = BehaviorSubject();

StreamSubscription subscription = source.listen((data) {...});
StreamSubscription subscription2 = source.listen((data) {...});

subxList.set('key1', subscription);
subxList.set('key2', subscription2);

...

subxList.unsubscribeAll();
copied to clipboard
API Reference
License #
Copyright (c) Tyrcord, Inc. Licensed under the ISC License.
See LICENSE file in the project root for details.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.