copyWith method

ApiResponse<T> copyWith({
  1. int? count,
  2. List<T>? data,
})

Implementation

ApiResponse<T> copyWith({int? count, List<T>? data}) => ApiResponse<T>(
      count: count ?? this.count,
      data: data ?? this.data,
    );