string not type Uri in flutter
// Simply do this if your link has no parameters or just a string
var url = Uri.parse(url_string)
// According to an answer @stackoverflow
final _authority = "example.com";
final _path = "/api";
final _params = { "q" : "dart" };
final _uri = Uri.https(_authority, _path, _params);