copyWith method

OperationOutcome<T> copyWith({
  1. String? id,
  2. Meta? meta,
  3. Narrative? text,
  4. FixedList<Issue>? issue,
})

Creates a copy of the OperationOutcome instance and allows for non-destructive mutation.

Implementation

OperationOutcome<T> copyWith({
  String? id,
  Meta? meta,
  Narrative? text,
  FixedList<Issue>? issue,
}) =>
    OperationOutcome<T>(
      id: id ?? this.id,
      meta: meta ?? this.meta,
      text: text ?? this.text,
      issue: issue ?? this.issue,
    );