leak_sniffer 0.1.3 copy "leak_sniffer: ^0.1.3" to clipboard
leak_sniffer: ^0.1.3 copied to clipboard

A custom lint package for Dart & Flutter that detects unclosed, uncancelled, and undisposed resources to help prevent memory leaks.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add leak_sniffer

With Flutter:

 $ flutter pub add leak_sniffer

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

dependencies:
  leak_sniffer: ^0.1.3

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:leak_sniffer/leak_sniffer.dart';
1
likes
130
points
8
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A custom lint package for Dart & Flutter that detects unclosed, uncancelled, and undisposed resources to help prevent memory leaks.

Repository (GitHub)
View/report issues

Topics

#custom-lint #flutter #static-analysis #memory-leaks

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, collection, custom_lint, custom_lint_builder, lints, meta, yaml, yaml_edit

More

Packages that depend on leak_sniffer