base property

String get base

Returns the base URL of the URI, consisting of the scheme, host, and port (if present).

Implementation

String get base {
  return this.scheme +
      '://' +
      this.host +
      (this.hasPort ? ':${this.port}' : '');
}