xxxxxxxxxx
The following ArgumentError was thrown resolving an image codec:
Invalid argument(s): No host specified in URI file:///
xxxxxxxxxx
// lost Domain name : such as : https://google.com/your path
// Example: Try adding 'http://domain.com/' before your uri
String domain = "https://google.com/";
String getData = "getData";
String baseURL = "domain + getData";
xxxxxxxxxx
The pub.dev package is either disbaled or not compatible(i.e null safety error)
xxxxxxxxxx
const url = new URL('http://example.com/path/to/resource');
console.log(url.hostname);