flutter_debounce 0.0.1 flutter_debounce: ^0.0.1 copied to clipboard
A pure dart package which prevent continuous execution of functions.
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();
}
}