toUri method

Uri toUri()

Converts the current string into a valid URI. Since it uses Uri.parse then it can throw FormatException if this is not a valid string for parsing.

Implementation

Uri toUri() => Uri.parse(this);