EntityPaginationReset<O extends Object> class final

Every loaded page was discarded by EntityPagination.reset or EntityPagination.refresh, and everything known about the end with them.

Emitted after the state is cleared, so the pagination already reads as empty. The discarded state is on the event itself.

The only event that is not an EntityPaginationPageEvent: it is about the whole pagination.

Inheritance

Constructors

EntityPaginationReset(EntityPagination<O> pagination, List<int> discardedPages, int discardedEntitiesLength, bool isRefresh)

Properties

discardedEntitiesLength → int
The number of entries that were loaded before the reset.
final
discardedPages → List<int>
The pages that were loaded before the reset, ascending.
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether there was nothing to discard.
no setter
isRefresh → bool
Whether this is the reset of an EntityPagination.refresh, which re-fetches discardedPages right after — so a consumer can tell an in-progress refresh from a pagination that was simply emptied.
final
limit → int
The page size. Same as pagination.limit.
no setterinherited
pagination → EntityPagination<O>
The EntityPagination that emitted this event.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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.
inherited