copyWith method Null safety

FhirPathException copyWith(
  1. {Object? context,
  2. Map? variables}
)

Implementation

FhirPathException copyWith({
  Object? context,
  Map? variables,
}) {
  return FhirPathException(
    message,
    pathExpression: pathExpression,
    offset: offset,
    token: token,
    cause: cause,
    operation: operation,
    arguments: arguments,
    collection: collection,
    context: context ?? this.context,
    environment: variables ?? this.environment,
  );
}