flutter_debounce 0.0.1 copy "flutter_debounce: ^0.0.1" to clipboard
flutter_debounce: ^0.0.1 copied to clipboard

A pure dart package which prevent continuous execution of functions.

example/main.dart

import 'package:debounce/debounce.dart';
import 'dart:async';

void main() async {
  var value = 0;
  final debounce = Debounce(() {
    print('here');
  });

  debounce.call();

  while (value++ < 5) {
    await Future.delayed(Duration(milliseconds: 200));
    debounce.call();
  }
}
0
likes
30
pub points
56%
popularity

Publisher

unverified uploader

A pure dart package which prevent continuous execution of functions.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

MIT (LICENSE)

More

Packages that depend on flutter_debounce