I am new to flutter but few days ago http.get(url) where url as string was being accepted but now its not working. It says string value cant be assigned to URI
Future getNews() async{
var client = http.Client();
var response = await client.get('http://newsapi.org/v2/everything?q=tesla&from=2021-02-17&sortBy=publishedAt&apiKey=230538c0a3f2450ba9ddf5802220ccf9');
}