getAsURI method

Uri getAsURI()

Returns the given endpoint parsed to an valid URI.

Could throw FormatException if URI.parse couldn't parse the string.

Implementation

Uri getAsURI() {
  return Uri.parse(endpoint);
}