toUrl method

String toUrl()

Implementation

String toUrl() {
  if (key != null) {
    return toSafeUrl();
  } else {
    return toUnsafeUrl();
  }
}