PagedState<T> constructor
PagedState<T> ({
- PagedStatus status = PagedStatus.initial,
- String? message,
- RefreshStatus refreshStatus = RefreshStatus.initial,
- List<
FireData< ? items,T> > - List<
FireData< ? addedItems,T> > - List<
FireData< ? updatedItems,T> > - 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>>[];