copyWithWrapped method

BaseRes copyWithWrapped({
  1. Wrapped<bool>? ok,
  2. Wrapped<String?>? msg,
})

Implementation

BaseRes copyWithWrapped({Wrapped<bool>? ok, Wrapped<String?>? msg}) {
  return BaseRes(
      ok: (ok != null ? ok.value : this.ok),
      msg: (msg != null ? msg.value : this.msg));
}