TLoadResult<T> class

Result of a data load operation.

Constructors

TLoadResult(List<T> items, int totalItems, {String? nextCursor, bool? hasNextPage})
Creates a load result.
const
TLoadResult.empty()
Creates an empty load result.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
hasNextPage → bool?
Whether there are more items after the current page. If null, computed from items.length and totalItems.
final
items → List<T>
The loaded items.
final
nextCursor → String?
Cursor for the next page (nullable, for cursor-based pagination).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalItems → int
Total number of items available (for pagination). In cursor pagination, this may be 0 or approximate.
final

Methods

copyWith({List<T>? items, int? totalItems, String? nextCursor, bool? hasNextPage}) → TLoadResult<T>
Creates a copy with updated properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override