uri property

Uri get uri

Converts the string to a Uri, adding "https://" if missing.

Implementation

Uri get uri {
  String v = this;
  if (!v.contains("://")) v = "https://$v";
  return Uri.parse(v);
}