debounce_widget 1.0.0 debounce_widget: ^1.0.0 copied to clipboard
A package for debouncing callbacks for certain amount of time.
debounce_widget #
A package for debouncing callbacks for certain amount of time.
Installation #
debounce_widget:1.0.0
Import #
import 'package:debounce_widget/debounce_widget.dart';
Usage #
DebounceWidget(
debouncer: Debouncer(Duration(milliseconds: 500)),
builder: (context, debouncer) => TextField(
onChanged: (text) async {
if (await debouncer.wait) contrller.add(text);
},
),
),