PlexViewModel<Sc extends PlexScreen, St extends PlexState<Sc> > class
When extend PlexViewModel use your PlexScreen and PlexState like this: class MyViewModel extends PlexViewModel<MyPlexScreen, MyPlexScreenState> { }
Constructors
Properties
- context → BuildContext?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → St?
-
The State of Screen ()
no setter
Methods
-
hideLoading(
) → dynamic -
isLoading(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setState(
St state) → dynamic - Set the State of Screen on Init
-
showLoading(
) → dynamic -
toast(
String message) → dynamic -
toastDelayed(
String message) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited