Url class

The URL interface represents an object providing static methods used for creating object URLs.

MDN Reference

Available extensions
Annotations

Constructors

Url(Object url, [Object? base])
factory

Properties

hash ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
host ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
hostname ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
href ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
origin → String

Available on Url, provided by the Url$Typings extension

MDN Reference
no setter
password ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
pathname ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
port ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
protocol ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair
searchParams → URLSearchParams

Available on Url, provided by the Url$Typings extension

MDN Reference
no setter
toJSON ↔ String Function()

Available on Url, provided by the Url$Typings extension

getter/setter pair
toString$ ↔ String Function()

Available on Url, provided by the Url$Typings extension

getter/setter pair
username ↔ String

Available on Url, provided by the Url$Typings extension

MDN Reference
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

canParse ↔ bool Function(Object, [String?])
getter/setter pair
createObjectURL ↔ String Function(Blob)
getter/setter pair
revokeObjectURL ↔ void Function(String)
getter/setter pair