copyWith method
Implementation
PageInfo copyWith({
bool? hasNextPage,
bool? hasPreviousPage,
String? startCursor,
String? endCursor,
}) {
return PageInfo(
hasNextPage: hasNextPage ?? this.hasNextPage,
hasPreviousPage: hasPreviousPage ?? this.hasPreviousPage,
startCursor: startCursor ?? this.startCursor,
endCursor: endCursor ?? this.endCursor,
);
}