Created
August 14, 2020 10:11
-
-
Save dllewellyn/f844e8c22574007906e6c2011d15d10d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Stream<Transition<SearchEvent, SearchState>> transformEvents( | |
Stream<SearchEvent> events, | |
TransitionFunction<SearchEvent, SearchState> transitionFn, | |
) { | |
return events | |
.debounceTime(const Duration(milliseconds: 350)) | |
.switchMap(transitionFn); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment