MiniProgramPagedBackendQuery constructor

const MiniProgramPagedBackendQuery({
  1. required String requestId,
  2. required String endpoint,
  3. int limit = 20,
  4. String? initialCursor,
  5. String cursorParam = 'cursor',
  6. String limitParam = 'limit',
  7. String itemsPath = 'items',
  8. String nextCursorPath = 'nextCursor',
  9. String hasMorePath = 'hasMore',
  10. Duration? cacheTtl,
  11. bool forceRefresh = false,
})

Implementation

const MiniProgramPagedBackendQuery({
  required this.requestId,
  required this.endpoint,
  this.limit = 20,
  this.initialCursor,
  this.cursorParam = 'cursor',
  this.limitParam = 'limit',
  this.itemsPath = 'items',
  this.nextCursorPath = 'nextCursor',
  this.hasMorePath = 'hasMore',
  this.cacheTtl,
  this.forceRefresh = false,
});