debouncer 0.0.2

  • Installing
  • Versions
  • 38


Quick start:

import 'package:debouncer/debouncer.dart';

So, somewhere in your application:

Debouncer debouncer = new Debouncer(1000);
List<String> logs = [];

onChange(String val) {, [val]);

So in this case logs.add will only be called with a single parameter that is val, when time between invocations is larger than 1000 milliseconds.

If the parameters change between calls to .run, only the last parameters which are passed are going to be used when the calls do not occur for given milliseconds.

If you call the same instance with different functions, only the last used function will be called when the calls do not occur for given milliseconds.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  debouncer: "^0.0.2"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

      import 'package:debouncer/debouncer.dart';
Version Uploaded Documentation Archive
0.0.2 Jan 14, 2017 Go to the documentation of debouncer 0.0.2 Download debouncer 0.0.2 archive
0.0.1 Jan 14, 2017 Go to the documentation of debouncer 0.0.1 Download debouncer 0.0.1 archive


We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
95 / 100
Reflects how tidy and up-to-date the package is. [more]
46 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:debouncer/debouncer.dart.


  • Maintain

    Changelog entries help clients to follow the progress in your code.

  • Package is getting outdated.

    The package was released 74 weeks ago.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use debouncer.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Run dartfmt to format lib/debouncer.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <2.0.0