WorkerLocation class
The interface defines 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
.
This interface is only visible from inside a JavaScript script
executed in the context of a Web worker.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- WorkerLocation()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter - hostname → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter - href → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter - mHash → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter - origin → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter - pathname → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter - port → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter - protocol → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search → String
-
Available on WorkerLocation, provided by the PropsWorkerLocation extension
no setter
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