# ZoneSpecification.from constructor

ZoneSpecification.from(ZoneSpecification other, { HandleUncaughtErrorHandler handleUncaughtError, RunHandler<R> run, RunUnaryHandler<R, T> runUnary, RunBinaryHandler<R, T1, T2> runBinary, RegisterCallbackHandler<R> registerCallback, RegisterUnaryCallbackHandler<R, T> registerUnaryCallback, RegisterBinaryCallbackHandler<R, T1, T2> registerBinaryCallback, ErrorCallbackHandler errorCallback, ScheduleMicrotaskHandler scheduleMicrotask, CreateTimerHandler createTimer, CreatePeriodicTimerHandler createPeriodicTimer, PrintHandler print, ForkHandler fork })

Creates a specification from `other` with the provided handlers overriding the ones in `other`.

## Implementation

    factory ZoneSpecification.from(ZoneSpecification other,
        {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}) {
      return new ZoneSpecification(
          handleUncaughtError: handleUncaughtError ?? other.handleUncaughtError,
          run: run ?? other.run,
          runUnary: runUnary ?? other.runUnary,
          runBinary: runBinary ?? other.runBinary,
          registerCallback: registerCallback ?? other.registerCallback,
          registerUnaryCallback:
              registerUnaryCallback ?? other.registerUnaryCallback,
          registerBinaryCallback:
              registerBinaryCallback ?? other.registerBinaryCallback,
          errorCallback: errorCallback ?? other.errorCallback,
          scheduleMicrotask: scheduleMicrotask ?? other.scheduleMicrotask,
          createTimer: createTimer ?? other.createTimer,
          createPeriodicTimer: createPeriodicTimer ?? other.createPeriodicTimer,
          print: print ?? other.print,
          fork: fork ?? other.fork);
    }