parse static method

Uri parse(
  1. String textValue
)
override

Parses the given textValue as an URI

Implementation

static Uri parse(String textValue) {
  var usedValue = textValue;
  if (usedValue.startsWith('"')) {
    usedValue = usedValue.substring(1, usedValue.length - 1);
  }
  if (usedValue.startsWith(':')) {
    usedValue = usedValue.substring(1);
  }

  return Uri.parse(usedValue);
}