copyWith method

PageInfo copyWith({
  1. bool? hasNextPage,
  2. bool? hasPreviousPage,
  3. String? startCursor,
  4. String? endCursor,
})

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