PagedValue<Key, Value> constructor
const
PagedValue<Key, Value> ({
- required List<
Value> items, - Key? nextPageKey,
- StreamChatError? error,
Represents the success state of the PagedValue
Implementation
// @Assert(
// 'nextPageKey != null',
// 'Cannot set an error if all the pages are already fetched',
// )
const factory PagedValue({
/// List with all items loaded so far.
required List<Value> items,
/// The key for the next page to be fetched.
Key? nextPageKey,
/// The current error, if any.
StreamChatError? error,
}) = Success<Key, Value>;