auto_dispose_mixin 1.1.0 copy "auto_dispose_mixin: ^1.1.0" to clipboard
auto_dispose_mixin: ^1.1.0 copied to clipboard

A lightweight Flutter mixin that automatically disposes controllers, subscriptions, and other resources to prevent memory leaks.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add auto_dispose_mixin

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

dependencies:
  auto_dispose_mixin: ^1.1.0

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

Import it

Now in your Dart code, you can use:

import 'package:auto_dispose_mixin/auto_dispose_mixin.dart';
1
likes
160
points
217
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter mixin that automatically disposes controllers, subscriptions, and other resources to prevent memory leaks.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on auto_dispose_mixin