GetXRequestListController<T, E> class
abstract
- Inheritance
-
- Object
- GetLifeCycle
- DisposableInterface
- GetxController
- BaseGetXRequestController<
List< T> , E> - GetXRequestController<
List< T> , E> - GetXRequestListController
- Available extensions
Constructors
Properties
-
data
↔ List<
T> -
------------------------------------------- 请求相关 --------------------------------------------------------
getter/setter pairinherited
- error ↔ E?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
no setterinherited
- hasMore → bool
-
no setter
- initialized → bool
-
Checks whether the controller has already been initialized.
no setterinherited
- isBusy → bool
-
no setterinherited
- isClosed → bool
-
Checks whether the controller has already been closed.
no setterinherited
- isError → bool
-
no setterinherited
- isInit ↔ bool
-
getter/setter pairinherited
- isLoadMoreBusy → bool
-
no setterinherited
- isLoadMoreError → bool
-
no setterinherited
- isLoadMoreSuccess → bool
-
no setterinherited
- isLoadMoreSuccessButEmpty → bool
-
no setterinherited
- isRefreshBusy → bool
-
no setterinherited
- isRefreshError → bool
-
no setterinherited
- isRefreshSuccess → bool
-
no setterinherited
- isRefreshSuccessButEmpty → bool
-
no setterinherited
- isSuccess → bool
-
no setterinherited
- isSuccessEmpty → bool
-
no setterinherited
- listeners → int
-
no setterinherited
- loadMoreError ↔ E?
-
getter/setter pairinherited
- loadMoreState ↔ ViewLoadMoreStateType
-
getter/setter pairinherited
-
onDelete
→ InternalFinalCallback<
void> -
Internal callback that starts the cycle of this controller.
finalinherited
-
onStart
→ InternalFinalCallback<
void> -
Called at the exact moment the widget is allocated in memory.
It uses an internal "callable" type, to avoid any @overrides in subclases.
This method should be internal and is required to define the
lifetime cycle of the subclass.
finalinherited
- pageSize → int
-
获取推断的页面大小
no setter
- refreshError ↔ E?
-
getter/setter pairinherited
- refreshState ↔ ViewRefreshStateType
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag ↔ String
-
请求唯一标记
getter/setter pairinherited
- url ↔ String
-
请求url
getter/setter pairinherited
- viewState ↔ ViewStateType
-
getter/setter pairinherited
Methods
-
$configureLifeCycle(
) → void -
inherited
-
addListener(
GetStateUpdate listener) → Disposer -
Register a closure to be called when the object notifies its listeners.
inherited
-
addListenerId(
Object? key, GetStateUpdate listener) → Disposer -
inherited
-
beforeLoadMore(
) → void -
加载更多前
inherited
-
beforeRefresh(
) → void -
刷新前
inherited
-
debounceSuccess(
) → void -
------------------------------------------- 防抖 --------------------------------------------------------
inherited
-
deBounceTasks(
) → void -
inherited
-
dispose(
) → void -
inherited
-
disposeId(
Object id) → void -
To dispose an
idfrom future updates(), this ids are registered byGetBuilder()or similar, so is a way to unlink the state change with the Widget from the Controller.inherited -
getAutoInferHasMore(
) → bool - 获取是否启用自动推断hasMore
-
getAutoRefresh(
) → bool -
inherited
-
getDeBounceDuration(
) → Duration -
inherited
-
getDeBounceSuccessDuration(
) → Duration -
inherited
-
getDeBounceTasks(
) → List< Function> -
inherited
-
getDelayDuration(
) → Duration -
inherited
-
getShouldClearRefresh(
) → bool - 刷新时是否清空数据
-
getShouldClearWhenRefreshError(
) → bool - 刷新错误时是否清空数据
-
handleAddList(
ViewStateHttpData< List< httpData, LoadType loadType) → Future<T> , E>void> -
handleError(
ViewStateHttpData< List< httpData, LoadType loadType) → voidT> , E> -
inherited
-
handleHttpData(
{required ViewStateHttpData< List< httpData, required LoadType loadType}) → voidT> , E> -
override
-
handleResult(
ViewStateHttpData< List< httpData, LoadType loadType) → voidT> , E> -
override
-
loadMoreData(
) → Future< ViewStateHttpData< List< >T> , E> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyChildrens(
) → void -
inherited
-
onClose(
) → void -
Called before onDelete method. onClose might be used to
dispose resources used by the controller. Like closing events,
or streams before the controller is destroyed.
Or dispose objects that can potentially create some memory leaks,
like TextEditingControllers, AnimationControllers.
Might be useful as well to persist some data on disk.
inherited
-
onInit(
) → void -
Called immediately after the widget is allocated in memory.
You might use this to initialize something for the controller.
inherited
-
onLoadMoreError(
) → void -
inherited
-
onLoadMoreSuccess(
) → void -
inherited
-
onLoadMoreSuccessButEmpty(
) → void -
inherited
-
onReady(
) → void -
Called 1 frame after onInit(). It is the perfect place to enter
navigation events, like snackbar, dialogs, or a new route, or
async request.
inherited
-
onRefreshBusy(
) → void -
inherited
-
onRefreshError(
) → void -
inherited
-
onRefreshSuccess(
) → void -
inherited
-
onRefreshSuccessButEmpty(
) → void -
inherited
-
realLoadMoreData(
) → Future< ViewStateHttpData< List< >T> , E> -
inherited
-
realRefreshData(
) → Future< ViewStateHttpData< List< >T> , E> -
inherited
-
refresh(
) → void -
inherited
-
refreshData(
) → Future< ViewStateHttpData< List< >T> , E> -
inherited
-
refreshGroup(
Object id) → void -
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
removeListenerId(
Object id, VoidCallback listener) → void -
inherited
-
resetPaginationState(
) → void - 重置状态(在刷新时调用)
-
setAutoInferHasMore(
bool enable) → void - 设置是否启用自动推断hasMore
-
setBusy(
) → void -
------------------------------------------- 状态相关 --------------------------------------------------------
inherited
-
setError(
E? e) → void -
inherited
-
setHasMore(
bool hasMoreData) → void - 手动设置hasMore(这将禁用自动推断)
-
setLoadMoreBusy(
) → void -
inherited
-
setLoadMoreError(
E? e) → void -
inherited
-
setLoadMoreSuccess(
) → void -
inherited
-
setLoadMoreSuccessButEmpty(
) → void -
inherited
-
setPageSize(
int pageSize) → void - 手动设置pageSize(这将启用更精确的hasMore推断)
-
setRefreshBusy(
) → void -
inherited
-
setRefreshError(
E? e) → void -
inherited
-
setRefreshSuccess(
) → void -
inherited
-
setRefreshSuccessButEmpty(
) → void -
inherited
-
setStateByLoadType(
LoadType loadType) → void -
setSuccess(
) → void -
inherited
-
setSuccessEmpty(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
[List< Object> ? ids, bool condition = true]) → void -
Rebuilds
GetBuildereach time you callupdate(); Can take a List ofids, that will only update the matchingGetBuilder( id: ),idscan be reused amongGetBuilderslike group tags. The update will only notify the Widgets, ifconditionis true.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited