URLTransform constructor

URLTransform({
  1. String? scheme,
  2. String? host,
  3. String? port,
  4. String? path,
  5. String? query,
  6. QueryTransform? queryTransform,
  7. String? fragment,
  8. String? username,
  9. String? password,
})

Implementation

URLTransform({
  /// The new scheme for the request. Allowed values are "http", "https",
  /// "ftp" and "chrome-extension".
  String? scheme,

  /// The new host for the request.
  String? host,

  /// The new port for the request. If empty, the existing port is cleared.
  String? port,

  /// The new path for the request. If empty, the existing path is cleared.
  String? path,

  /// The new query for the request. Should be either empty, in which case the
  /// existing query is cleared; or should begin with '?'.
  String? query,

  /// Add, remove or replace query key-value pairs.
  QueryTransform? queryTransform,

  /// The new fragment for the request. Should be either empty, in which case
  /// the existing fragment is cleared; or should begin with '#'.
  String? fragment,

  /// The new username for the request.
  String? username,

  /// The new password for the request.
  String? password,
}) : _wrapped = $js.URLTransform(
        scheme: scheme,
        host: host,
        port: port,
        path: path,
        query: query,
        queryTransform: queryTransform?.toJS,
        fragment: fragment,
        username: username,
        password: password,
      );