PaginatedStreamStateNotifier<Entity , Param > class
abstract
Inheritance
Implementers
Annotations
@Deprecated ('Use PaginatedStreamNotifier instead')
Properties
debugState
→ PaginatedState <Entity >
A development-only way to access state outside of StateNotifier.
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
hasListeners
→ bool
If a listener has been added using addListener and hasn't been removed yet.
no setter inherited
mounted
→ bool
Whether dispose was called or not.
no setter inherited
onError
↔ ErrorListener?
A callback for error reporting if one of the listeners added with addListener throws.
getter/setter pair inherited
ref
→ Ref<Object ? >
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
state
↔ PaginatedState <Entity >
The current "state" of this StateNotifier.
getter/setter pair inherited
stream
→ Stream <PaginatedState <Entity > >
A broadcast stream representation of a StateNotifier.
no setter inherited
Methods
addListener (Listener<PaginatedState <Entity > > listener , {bool fireImmediately = true })
→ RemoveListener
Subscribes to this object.
inherited
cancelThrottle ({String throttleIdentifier = '' })
→ void
Cancels if throttling is in progress
inherited
clearGlobalLoading ()
→ void
Clear BaseLoadingIndicator
inherited
debounce ({Duration duration = const Duration(milliseconds: 500) })
→ Future <void >
Wait to collect multiple method calls for certain duration before allowing only one method call to proceed
inherited
dispose ()
→ void
Frees all the resources associated with this object.
inherited
getInitialList ([Param? param ])
→ Future <void >
inherited
getListStreamOrFailure (int page , [Param? parameter ])
→ PaginatedStreamFailureOr <Entity >
inherited
getNextPage ()
→ Future <void >
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on <U > (ProviderListenable<U > provider , void invokeFunction (U? previous , U next ), {bool skipUpdateCondition (U? previous , U next )? })
→ void
Subscribe to another notifier's state changes
inherited
refresh ()
→ Future <void >
inherited
setGlobalFailure (Failure ? failure )
→ void
inherited
setGlobalInfo (GlobalInfo ? globalInfo )
→ void
inherited
showGlobalLoading ()
→ void
Show BaseLoadingIndicator above the entire app
inherited
throttle (Future <void > function (), {Duration duration = const Duration(milliseconds: 500) , bool waitForFunction = true , String throttleIdentifier = '' })
→ Future <void >
Execute given function and then block further executing of the same function for certain duration.
waitForFunction if set to true it will wait if function finishes after provided duration delay, otherwise will finish immediately after given duration
inherited
toString ()
→ String
A string representation of this object.
inherited
updateShouldNotify (PaginatedState <Entity > old , PaginatedState <Entity > current )
→ bool
Whether to notify listeners or not when state changes
inherited