copyWith method

EvaluationContext copyWith({
  1. Object? resolveRef(
    1. String name
    )?,
  2. Map<String, Object?>? extraScope,
  3. void reportError(
    1. String message
    )?,
  4. NodeBudget? nodes,
})

Implementation

EvaluationContext copyWith({
  Object? Function(String name)? resolveRef,
  Map<String, Object?>? extraScope,
  void Function(String message)? reportError,
  NodeBudget? nodes,
}) => EvaluationContext(
  getState: getState,
  resolveRef: resolveRef ?? this.resolveRef,
  functions: functions,
  actions: actions,
  extraScope: extraScope ?? this.extraScope,
  reportError: reportError ?? this.reportError,
  locale: locale,
  nodes: nodes ?? this.nodes,
);