MStateMixin<T> mixin
- Superclass constraints
- ListNotifierMixin
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
no setterinherited
- isLoaded ↔ dynamic
-
getter/setter pair
- listeners → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → T
-
no setter
-
status
↔ MGetStatus<
T> -
getter/setter pair
- value ↔ T
-
getter/setter pair
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
-
change(
MGetStatus< T> status) → void -
check(
T dataSource) → void -
Available on MStateMixin<
T> , provided by the MStateExt extension -
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 -
loading(
NotifierBuilder< T?> widget, {Widget? onError(MError? error)?, Widget? onLoading, double? loadingIndicatorSize, AlignmentGeometry? alignment, Widget? onEmpty, String? emptyText, WidgetBuilder? onCustom, bool showLoading = true, bool showError = true, bool showEmpty = true, bool isStateless = false}) → Widget -
mobx(
NotifierBuilder< T?> widget, {Widget? onError(MError? error)?, Widget? onLoading, Widget? onEmpty, WidgetBuilder? onCustom}) → Widget -
Available on MStateMixin<
T> , provided by the MStateExt extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyChildrens(
) → void -
inherited
-
onLoading(
Future< T> body(), {T? initialData, String? errorMessage, MError? error, bool useEmpty = true}) → void -
onReload(
) → void -
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