PagedState<T> constructor

PagedState<T>({
  1. PagedStatus status = PagedStatus.initial,
  2. String? message,
  3. RefreshStatus refreshStatus = RefreshStatus.initial,
  4. List<FireData<T>>? items,
  5. List<FireData<T>>? addedItems,
  6. List<FireData<T>>? updatedItems,
  7. int? updatedAt,
})

Implementation

PagedState({
  this.status = PagedStatus.initial,
  this.message,
  this.refreshStatus = RefreshStatus.initial,
  List<FireData<T>>? items,
  List<FireData<T>>? addedItems,
  List<FireData<T>>? updatedItems,
  this.updatedAt,
})  : items = items ?? <FireData<T>>[],
      newItems = addedItems ?? <FireData<T>>[],
      updatedItems = updatedItems ?? <FireData<T>>[];