voidCallback<T> static method
Implementation
static VoidCallback voidCallback<T>(
VoidCallback fn, {
int delay = 200,
}) {
Timer? timer;
return () {
if (timer != null) {
timer!.cancel();
}
timer = Timer(Duration(milliseconds: delay), fn);
};
}