description

# ZoneSpecification constructor Null safety

const ZoneSpecification(

1. {HandleUncaughtErrorHandler? handleUncaughtError,
2. R run(
   1. Zone self,
   2. ZoneDelegate parent,
   3. Zone zone,
   4. R f(
      )
   ),
3. R runUnary(
   1. Zone self,
   2. ZoneDelegate parent,
   3. Zone zone,
   4. R f(
      1. T arg
      ),
   5. T arg
   ),
4. R runBinary(
   1. Zone self,
   2. ZoneDelegate parent,
   3. Zone zone,
   4. R f(
      1. T1 arg1,
      2. T2 arg2
      ),
   5. T1 arg1,
   6. T2 arg2
   ),
5. ZoneCallback<R> registerCallback(
   1. Zone self,
   2. ZoneDelegate parent,
   3. Zone zone,
   4. R f(
      )
   ),
6. ZoneUnaryCallback<R, T> registerUnaryCallback(
   1. Zone self,
   2. ZoneDelegate parent,
   3. Zone zone,
   4. R f(
      1. T arg
      )
   ),
7. ZoneBinaryCallback<R, T1, T2> registerBinaryCallback(
   1. Zone self,
   2. ZoneDelegate parent,
   3. Zone zone,
   4. R f(
      1. T1 arg1,
      2. T2 arg2
      )
   ),
8. ErrorCallbackHandler? errorCallback,
9. ScheduleMicrotaskHandler? scheduleMicrotask,
10. CreateTimerHandler? createTimer,
11. CreatePeriodicTimerHandler? createPeriodicTimer,
12. PrintHandler? print,
13. ForkHandler? fork}

)

Creates a specification with the provided handlers.

## Implementation

    const factory ZoneSpecification(
        {HandleUncaughtErrorHandler? handleUncaughtError,
        RunHandler? run,
        RunUnaryHandler? runUnary,
        RunBinaryHandler? runBinary,
        RegisterCallbackHandler? registerCallback,
        RegisterUnaryCallbackHandler? registerUnaryCallback,
        RegisterBinaryCallbackHandler? registerBinaryCallback,
        ErrorCallbackHandler? errorCallback,
        ScheduleMicrotaskHandler? scheduleMicrotask,
        CreateTimerHandler? createTimer,
        CreatePeriodicTimerHandler? createPeriodicTimer,
        PrintHandler? print,
        ForkHandler? fork}) = _ZoneSpecification;