copyWith method
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,
);
}