diff --git a/lib/hooks/debounce.dart b/lib/hooks/debounce.dart index 1a6c12e..0886037 100644 --- a/lib/hooks/debounce.dart +++ b/lib/hooks/debounce.dart @@ -7,13 +7,13 @@ import 'ref.dart'; class Debounce { final bool loading; - final void Function() bounce; + final void Function() callback; - void call() => bounce(); + void call() => callback(); const Debounce({ @required this.loading, - @required this.bounce, + @required this.callback, }); } @@ -42,7 +42,7 @@ Debounce useDebounce( return Debounce( loading: loading.value, - bounce: () { + callback: () { cancel(); start(); });