copyWith method
Implementation
GetxPagingState<T> copyWith({
List<List<T>>? pages,
List<int>? keys,
Object? error,
bool? hasNextPage,
bool? isLoading,
String? search,
GetxCancelToken? cancelToken,
}) {
return GetxPagingState<T>(
pages: pages ?? this.pages,
keys: keys ?? this.keys,
error: error ?? this.error,
hasNextPage: hasNextPage ?? this.hasNextPage,
isLoading: isLoading ?? this.isLoading,
search: search ?? this.search,
cancelToken: cancelToken ?? this.cancelToken,
);
}