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

Analyzer plugin for object lifetimes: fields annotated with @Disposable must be cleaned up by the class that declares them, objects that own a lifecycle must not be created during a Flutter build, and [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add disposito

With Flutter:

 $ flutter pub add disposito

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

dependencies:
  disposito: ^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:disposito/disposito.dart';
4
likes
150
points
86
downloads

Documentation

API reference

Publisher

verified publisherarxdeus.dev

Weekly Downloads

Analyzer plugin for object lifetimes: fields annotated with @Disposable must be cleaned up by the class that declares them, objects that own a lifecycle must not be created during a Flutter build, and a State must not hand itself out of its own dispose or build a late field during teardown.

Repository (GitHub)
View/report issues

Topics

#analyzer-plugin #lints #static-analysis #memory

Funding

Consider supporting this project:

ko-fi.com

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, analyzer_plugin_toolkit

More

Packages that depend on disposito