Answers for "string not type Uri in flutter"

0

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);
Posted by: Guest on August-16-2021

Code answers related to "string not type Uri in flutter"

Browse Popular Code Answers by Language