change default debounce duration to 1 second
This commit is contained in:
parent
121f4a424c
commit
3809dcd0cc
|
@ -25,7 +25,7 @@ class Debounce {
|
|||
/// specified `delayDuration`
|
||||
Debounce useDebounce(
|
||||
Future<Null> Function() callback, [
|
||||
Duration delayDuration = const Duration(milliseconds: 500),
|
||||
Duration delayDuration = const Duration(seconds: 1),
|
||||
]) {
|
||||
final loading = useState(false);
|
||||
final timerHandle = useRef<Timer>(null);
|
||||
|
|
Loading…
Reference in New Issue