WorkerLocation class

The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

WorkerLocation.new()
factory

Properties

hash String

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
hashCode int
The hash code for this object.
no setterinherited
host String

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
hostname String

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
href String

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
origin String

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
pathname String

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
port String

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
protocol String

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

MDN Reference
no setter
toString$ String Function()

Available on WorkerLocation, provided by the WorkerLocation$Typings extension

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