copyWith method

BaseRes copyWith({
  1. bool? ok,
  2. String? msg,
})

Implementation

BaseRes copyWith({bool? ok, String? msg}) {
  return BaseRes(ok: ok ?? this.ok, msg: msg ?? this.msg);
}