subscription_tracker 1.0.1 copy "subscription_tracker: ^1.0.1" to clipboard
subscription_tracker: ^1.0.1 copied to clipboard

Subscription tracker for Streams.

example/subscription_tracker_example.dart

import 'package:subscription_tracker/subscription_tracker.dart';

void main() async {
  final tracker = SubscriptionTracker();
  final stream = Stream.value(123);

  stream.listenTracked(tracker, (event) {
    print(event);
  });

  final cancelled = await tracker.cancelAll();

  print('cancelled $cancelled subscriptions');
}
1
likes
125
points
26
downloads

Publisher

verified publishermolfars.dev

Weekly Downloads

Subscription tracker for Streams.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on subscription_tracker