InfiniteListState<T> class

Represents the state of the list containing items of type T.

Constructors

InfiniteListState({required List<T> items})
Constructs an instance of InfiniteListState.
InfiniteListState.empty()
Factory method to create an empty InfiniteListState instance.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<T>
The list of items of type T.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<T>? items}) InfiniteListState<T>
Creates a copy of InfiniteListState with the given fields replaced.
moreItems({required List<T> newItems}) InfiniteListState<T>
Creates a copy of InfiniteListState with additional newItems.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited