copyWith method

EntityRes copyWith({
  1. Object? entity,
  2. bool? ok,
  3. String? msg,
})

Implementation

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