copyWith method

PageData<T> copyWith({
  1. List<T>? data,
  2. int? count,
  3. String? next,
  4. String? previous,
})

Implementation

PageData<T> copyWith({
  List<T>? data,
  int? count,
  String? next,
  String? previous,
}) {
  return PageData<T>(
    data: data ?? this.data,
    count: count ?? this.count,
    next: next ?? this.next,
    previous: previous ?? this.previous,
  );
}