toUri
Converts the receiver string to a URI.
This function attempts to create a URI from the current string. If the string is not a valid URI, a IllegalArgumentException will be thrown.
Example usage:
val uri = "https://tomtom.com".toUri()
Content copied to clipboard
Return
the created URI instance.
Throws
if the string violates the RFC specification.
Important: This is a Public Preview API. It may be changed or removed at any time.