copyWithWrapped method

EventOutcomeDTO copyWithWrapped({
  1. Wrapped<String?>? result,
  2. Wrapped<String?>? reason,
})

Implementation

EventOutcomeDTO copyWithWrapped(
    {Wrapped<String?>? result, Wrapped<String?>? reason}) {
  return EventOutcomeDTO(
      result: (result != null ? result.value : this.result),
      reason: (reason != null ? reason.value : this.reason));
}