An adapted view of the parent zone.
This class allows the implementation of a zone method to invoke methods on the parent zone while retaining knowledge of the originating zone.
Custom zones (created through Zone.fork or runZoned) can provide implementations of most methods of zones. This is similar to overriding methods on Zone, except that this mechanism doesn't require subclassing.
A custom zone function (provided through a ZoneSpecification) typically records or wraps its parameters and then delegates the operation to its parent zone using the provided ZoneDelegate.
While zones have access to their parent zone (through Zone.parent) it is
recommended to call the methods on the provided parent delegate for two
reasons:
1. the delegate methods take an additional zone
argument which is the
zone the action has been initiated in.
2. delegate calls are more efficient, since the implementation knows how
to skip zones that would just delegate to their parents.
Constructors
Properties
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
createPeriodicTimer(
Zone zone, Duration period, void f(Timer timer)) → Timer -
createTimer(
Zone zone, Duration duration, void f()) → Timer -
errorCallback(
Zone zone, Object error, StackTrace stackTrace) → AsyncError -
fork(
Zone zone, ZoneSpecification specification, Map zoneValues) → Zone -
handleUncaughtError(
Zone zone, error, StackTrace stackTrace) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
print(
Zone zone, String line) → void -
registerBinaryCallback(
Zone zone, dynamic f(arg1, arg2)) → ZoneBinaryCallback -
registerCallback(
Zone zone, dynamic f()) → ZoneCallback -
registerUnaryCallback(
Zone zone, dynamic f(arg)) → ZoneUnaryCallback -
run(
Zone zone, dynamic f()) → dynamic -
runBinary(
Zone zone, dynamic f(arg1, arg2), arg1, arg2) → dynamic -
runUnary(
Zone zone, dynamic f(arg), arg) → dynamic -
scheduleMicrotask(
Zone zone, void f()) → void -
toString(
) → String -
Returns a string representation of this object.
inherited