Flutter how to abort prevent request with http package
I have a text field to search for cities. When I type a character, a request is sent to the server (API). When I enter any character. I need to cancel the previous request that is pending. Please help dear…