PaginationMeta constructor

PaginationMeta({
  1. int? page,
  2. int? pageSize,
  3. String? nextCursor,
  4. String? previousCursor,
  5. bool hasNext = false,
  6. bool hasPrevious = false,
  7. int? totalCount,
  8. DateTime? fetchedAt,
})

Implementation

PaginationMeta({
  this.page,
  this.pageSize,
  this.nextCursor,
  this.previousCursor,
  this.hasNext = false,
  this.hasPrevious = false,
  this.totalCount,
  DateTime? fetchedAt,
}) : fetchedAt = fetchedAt ?? DateTime.now();