disposito 1.0.1
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 dispositoWith Flutter:
$ flutter pub add dispositoThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
disposito: ^1.0.1Alternatively, 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';