copyWithWrapped method

BaseListRes copyWithWrapped({
  1. Wrapped<int?>? page,
  2. Wrapped<int?>? size,
  3. Wrapped<int?>? total,
  4. Wrapped<bool>? ok,
  5. Wrapped<String?>? msg,
})

Implementation

BaseListRes copyWithWrapped(
    {Wrapped<int?>? page,
    Wrapped<int?>? size,
    Wrapped<int?>? total,
    Wrapped<bool>? ok,
    Wrapped<String?>? msg}) {
  return BaseListRes(
      page: (page != null ? page.value : this.page),
      size: (size != null ? size.value : this.size),
      total: (total != null ? total.value : this.total),
      ok: (ok != null ? ok.value : this.ok),
      msg: (msg != null ? msg.value : this.msg));
}