disposable_container 0.1.0 copy "disposable_container: ^0.1.0" to clipboard
disposable_container: ^0.1.0 copied to clipboard

A flutter package that manages dispose callbacks and subscriptions cancellations.

A flutter package that manages dispose callbacks and subscriptions cancellations.

Features #

This package provides helpful classes/mixins and extensions to dispose different flutter resources like

  1. Sync or Async callbacks
  2. StreamControllers
  3. StreamSubscriptions
  4. TextEditingController
  5. FocusNode

Getting started #

Add the dependency on thep project's pubspec.yaml

dependencies:
  disposable_container: ^0.0.1

Usage #

import 'package:disposable_container/disposable_container.dart';

void main() {
  final DisposableContainer disposableContainer = DisposableContainer();

  disposableContainer.addDisposable(() => print('I will be disposed'));

  await disposableContainer.dispose();
}

Find more examples

3
likes
160
pub points
38%
popularity

Publisher

verified publisherptsakoulis.com

A flutter package that manages dispose callbacks and subscriptions cancellations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on disposable_container