PaginatedSearchController<T, Q> class
Constructors
-
PaginatedSearchController.new({required SearchProvider<
T, Q> searchProvider, int pageSize = defaultPageSize, Duration debounceDuration = defaultDebounceDuration, Q? initialPageQuery, bool debugLoggingEnabled = true})
Properties
- debounceDuration → Duration
-
final
- debugLoggingEnabled ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialPageQuery → Q?
-
final
- pageSize → int
-
final
-
ref
→ AutoDisposeNotifierProviderRef<
PaginatedState< T, Q> > -
The
Ref
from the provider associated with thisNotifier
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchProvider
→ SearchProvider<
T, Q> -
final
-
state
↔ PaginatedState<
T, Q> -
The value currently exposed by this
Notifier
.getter/setter pairinherited -
stateOrNull
→ PaginatedState<
T, Q> ? -
The value currently exposed by this
Notifier
.no setterinherited
Methods
-
build(
) → PaginatedState< T, Q> -
Initialize an
AsyncNotifier
. -
clear(
) → void -
fetchNextPage(
) → Future< void> - Fetch the next set of items from the same search
-
listenSelf(
void listener(PaginatedState< T, Q> ? previous, PaginatedState<T, Q> next), {void onError(Object error, StackTrace stackTrace)?}) → void -
Listens to changes on the value exposed by this provider.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void -
search(
{required Q? query}) → void -
toString(
) → String -
A string representation of this object.
inherited
-
updateShouldNotify(
PaginatedState< T, Q> previous, PaginatedState<T, Q> next) → bool -
A method invoked when the state exposed by this
Notifier
changes. It compares the previous and new value, and return whether listeners should be notified.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultDebounceDuration → const Duration
- defaultPageSize → const int
- initialPage → const int