ZoneMixin mixin

class MyZone with ZoneMixin implements Zone { 
  // Must override 
  @override 
  Zone get zone;
  ...
}
Implemented types

Properties

errorZone Zone
The error zone is responsible for dealing with uncaught errors.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
parent Zone?
The parent zone of the this zone.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zone Zone
no setter

Methods

bindBinaryCallback<R, T1, T2>(R callback(T1 argument1, T2 argument2)) ZoneBinaryCallback<R, T1, T2>
Registers the provided callback and returns a function that will execute in this zone.
override
bindBinaryCallbackGuarded<T1, T2>(void callback(T1 argument1, T2 argument2)) → void Function(T1, T2)
Registers the provided callback and returns a function that will execute in this zone.
override
bindCallback<R>(R callback()) ZoneCallback<R>
Registers the provided callback and returns a function that will execute in this zone.
override
bindCallbackGuarded(void callback()) → void Function()
Registers the provided callback and returns a function that will execute in this zone.
override
bindUnaryCallback<R, T>(R callback(T argument)) ZoneUnaryCallback<R, T>
Registers the provided callback and returns a function that will execute in this zone.
override
bindUnaryCallbackGuarded<T>(void callback(T argument)) → void Function(T)
Registers the provided callback and returns a function that will execute in this zone.
override
createPeriodicTimer(Duration period, void callback(Timer timer)) Timer
Creates a periodic Timer where the callback is executed in this zone.
override
createTimer(Duration duration, void callback()) Timer
Creates a Timer where the callback is executed in this zone.
override
errorCallback(Object error, StackTrace? stackTrace) AsyncError?
Intercepts errors when added programmatically to a Future or Stream.
override
fork({ZoneSpecification? specification, Map<Object?, Object?>? zoneValues}) Zone
Creates a new zone as a child zone of this zone.
override
handleUncaughtError(Object error, StackTrace stackTrace) → void
Handles uncaught asynchronous errors.
override
inSameErrorZone(Zone otherZone) bool
Whether this zone and otherZone are in the same error zone.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print(String line) → void
Prints the given line.
override
registerBinaryCallback<R, T1, T2>(R callback(T1 arg1, T2 arg2)) ZoneBinaryCallback<R, T1, T2>
Registers the given callback in this zone.
override
registerCallback<R>(R callback()) ZoneCallback<R>
Registers the given callback in this zone.
override
registerUnaryCallback<R, T>(R callback(T arg)) ZoneUnaryCallback<R, T>
Registers the given callback in this zone.
override
run<R>(R action()) → R
Executes action in this zone.
override
runBinary<R, T1, T2>(R action(T1 argument1, T2 argument2), T1 argument1, T2 argument2) → R
Executes the given action with argument1 and argument2 in this zone.
override
runBinaryGuarded<T1, T2>(void action(T1 argument1, T2 argument2), T1 argument1, T2 argument2) → void
Executes the given action with argument1 and argument2 in this zone and catches synchronous errors.
override
runGuarded(void action()) → void
Executes the given action in this zone and catches synchronous errors.
override
runUnary<R, T>(R action(T argument), T argument) → R
Executes the given action with argument in this zone.
override
runUnaryGuarded<T>(void action(T argument), T argument) → void
Executes the given action with argument in this zone and catches synchronous errors.
override
scheduleMicrotask(void callback()) → void
Runs callback asynchronously in this zone.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? key) → dynamic
Retrieves the zone-value associated with key.
override