FunStateMixin mixin

StateMixin包装类 为了简化change代码

Superclass Constraints
  • ListNotifierMixin
Mixin Applications

Properties

funStateStatus FunStateStatus
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
no setterinherited
listeners int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(GetStateUpdate listener) → Disposer
Register a closure to be called when the object notifies its listeners.
inherited
addListenerId(Object? key, GetStateUpdate listener) → Disposer
inherited
changeEmpty({bool forceUpdate = false}) → dynamic
changeError(dynamic error, {StackTrace? stackTrace, String? message, bool forceUpdate = false}) → dynamic
error为dynamic类型 stackTrace为堆栈信息 message为业务层想展示的message,优先级会大于原error的message
changeIdle({bool forceUpdate = false}) → dynamic
changeLoading({bool forceUpdate = false}) → dynamic
dispose() → void
inherited
disposeId(Object id) → void
To dispose an id from future updates(), this ids are registered by GetBuilder() or similar, so is a way to unlink the state change with the Widget from the Controller.
inherited
initStatus() FunStateStatus
初始化页面状态 可以用funStateStatus.isLoading判断是否初始化加载数据
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChildrens() → void
inherited
obx(FunStateBuilder stateBuilder, {FunStateErrorBuilder? onError, Widget? onLoading, Widget? onEmpty}) Widget
重写了原get提供的扩展方法
refresh() → void
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
toString() String
A string representation of this object.
inherited

Operators

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