Pagination constructor

Pagination({
  1. String? nextCursor,
  2. bool hasMore = false,
  3. bool isEmpty = false,
  4. List<Block>? blocks,
  5. List<Database>? databases,
})

Main pagination constructor.

Can receive the nextCursor, if hasMore pages, if isEmpty and the corresponding list: blocks, databases or pages.

Implementation

Pagination({
  this.nextCursor,
  this.hasMore: false,
  this.isEmpty: false,
  List<Block>? blocks,
  List<Database>? databases,
});