copyWith method

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

Implementation

BaseListRes copyWith(
    {int? page, int? size, int? total, bool? ok, String? msg}) {
  return BaseListRes(
      page: page ?? this.page,
      size: size ?? this.size,
      total: total ?? this.total,
      ok: ok ?? this.ok,
      msg: msg ?? this.msg);
}