Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:async
  3. ZoneDelegate class
ZoneDelegate
description

ZoneDelegate classabstractfinal

An adapted view of the parent zone.

This class allows the implementation of a zone method to invoke methods onthe parent zone while retaining knowledge of the originating zone.

Custom zones (created throughZone.fork orrunZoned) can provideimplementations of most methods of zones. This is similar to overridingmethods onZone, except that this mechanism doesn't require subclassing.

A custom zone function (provided through aZoneSpecification) typicallyrecords or wraps its parameters and then delegates the operation to itsparent zone using the providedZoneDelegate.

While zones have access to their parent zone (throughZone.parent) it isrecommended to call the methods on the provided parent delegate for tworeasons:

  1. the delegate methods take an additionalzone argument which is the zone the action has been initiated in.
  2. delegate calls are more efficient, since the implementation knows howto skip zones that would just delegate to their parents.

Properties

hashCodeint
The hash code for this object.
no setterinherited
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited

Methods

createPeriodicTimer(Zonezone,Durationperiod,voidf(Timertimer))Timer
createTimer(Zonezone,Durationduration,voidf())Timer
errorCallback(Zonezone,Objecterror,StackTrace?stackTrace)AsyncError?
fork(Zonezone,ZoneSpecification?specification,Map?zoneValues)Zone
handleUncaughtError(Zonezone,Objecterror,StackTracestackTrace)→ void
noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print(Zonezone,Stringline)→ void
registerBinaryCallback<R,T1,T2>(Zonezone,Rf(T1arg1,T2arg2))ZoneBinaryCallback<R,T1,T2>
registerCallback<R>(Zonezone,Rf())ZoneCallback<R>
registerUnaryCallback<R,T>(Zonezone,Rf(Targ))ZoneUnaryCallback<R,T>
run<R>(Zonezone,Rf())→ R
runBinary<R,T1,T2>(Zonezone,Rf(T1arg1,T2arg2),T1arg1,T2arg2)→ R
runUnary<R,T>(Zonezone,Rf(Targ),Targ)→ R
scheduleMicrotask(Zonezone,voidf())→ void
toString()String
A string representation of this object.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited
  1. Dart
  2. dart:async
  3. ZoneDelegate class
dart:async library

[8]ページ先頭

©2009-2025 Movatter.jp