BLoC search debounce
This is a code example from the official documentation:
@overrideStream<Transition<PostEvent, PostState>> transformEvents( Stream<PostEvent> events, TransitionFunction<PostEvent, PostState> transitionFn,) { return super.transformEvents( events.debounceTime(const Duration(milliseconds: 500)), transitionFn, );}
Please, double-check if that works in your case. Not sure, but maybe asyncExpand
just delays your events but they are not skipped, meaning you still send a request for each input change. Source: https://bloclibrary.dev/#/flutterinfinitelisttutorial