dispose 0.0.9+1 copy "dispose: ^0.0.9+1" to clipboard
dispose: ^0.0.9+1 copied to clipboard

A handler to correctly dispose listeners, timers, controllers etc.

0.0.9+1 #

  • Bumped ngdart version

0.0.9 #

  • Added notification bindings sugar

0.0.8 #

  • Added cancelBind and cancelTimer that cancel unique bindings and timers.
  • Added reusable method that creates an instance of Disposable so you can create bindings, clear them and rebind again when need.
  • Added an Angular base class to aid components:
import 'package:dispose/angular.dart';

class MyComponent extends DisposableComponent {
  StreamController<int> _myCtrl; // this will be automatically freed on ngOnDestroy

  MyComponent() {
    _myCtrl = controller();
  }
}

0.0.7 #

Removed the Object in favor of dynamic.

0.0.6 #

NNBD automatic migration

0.0.5 #

Some minor bug fixes

0.0.4 #

Added the disposable method. It enables adding disposable objects to be disposed within another Disposable object.

0.0.3 #

Removed the NNBD stuff for now.

0.0.2 #

First try of the package with the wrappers:

  • each: Stream
  • controller: StreamController
  • timer and periodic: Timer
1
likes
120
pub points
52%
popularity

Publisher

unverified uploader

A handler to correctly dispose listeners, timers, controllers etc.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

change_notifier, meta, ngdart, tuple

More

Packages that depend on dispose