method
parse

Uri parse(
String uri,
[int start = 0,
int end]
)

Creates a new Uri object by parsing a URI string.

If start and end are provided, only the substring from start to end is parsed as a URI.

If the string is not valid as a URI or URI reference, a FormatException is thrown.