copy method

  1. @protected
CoreActionContext copy(
  1. ValueScope scope, {
  2. bool suppressErrorEvents = false,
})

This context over scope (without its error events, with suppressErrorEvents). A subclass overrides it to stay itself.

Implementation

@protected
CoreActionContext copy(ValueScope scope, {bool suppressErrorEvents = false}) => CoreActionContext(
      scope: scope,
      expressions: expressions,
      services: services,
      ui: ui,
      functions: functions,
      tree: tree,
      nodeValues: nodeValues,
      onError: onError,
      onActionErrorEvent: suppressErrorEvents ? null : onActionErrorEvent,
      declareMissing: declareMissing,
      scripts: scripts,
      extensions: extensions,
      disposers: _disposers,
      failed: failed,
    );