concat static method

Uri concat(
  1. Uri? base,
  2. String relative
)

Implementation

static Uri concat(Uri? base, String relative) {
  Uri relativeUri = Uri.parse(relative);
  if (relativeUri.isAbsolute) {
    return relativeUri;
  } else {
    return relativeUri.replace(
        scheme: base!.scheme,
        userInfo: base.userInfo,
        host: base.host,
        port: base.port);
  }
}