reversed method

Page<T, C> reversed()

Returns a new Page with reversed info.

Implementation

Page<T, C> reversed() {
  return Page(
    List.from(this.edges.reversed),
    PageInfo(
      hasNext: this.info.hasPrevious,
      hasPrevious: this.info.hasNext,
      startCursor: this.info.endCursor,
      endCursor: this.info.startCursor,
    ),
  );
}