onTextChanges method
void
onTextChanges(
- dynamic text
Implementation
void onTextChanges(text) async {
if (debounceTimer?.isActive ?? false) debounceTimer!.cancel();
debounceTimer =
Timer(Duration(milliseconds: widget.debounceTime), () async {
await searchAddress(text);
if (widget.onChanged != null) {
widget.onChanged!(text);
}
});
}