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

Common interface to dispose different things. Always call dispose() instead of cancel(), stop(), etc.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add easy_dispose

With Flutter:

 $ flutter pub add easy_dispose

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  easy_dispose: ^1.0.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:easy_dispose/easy_dispose.dart';
1
likes
160
pub points
63%
popularity

Publisher

unverified uploader

Common interface to dispose different things. Always call dispose() instead of cancel(), stop(), etc.

Repository (GitHub)
View/report issues

Documentation

API reference

License

AGPL-3.0 (license)

More

Packages that depend on easy_dispose