I created search bar,after fetching data from api url while displaying the data it gives error of “The method ‘[]’ was called on null.” Here the complete code for the search bar :-