BasePageState<Model extends BaseUIModel> class abstract

A BaseModel wrapper for State objects and provides all necessary utilities needed to interact with the Store and the Navigator.

Inheritance
Implemented types

Constructors

BasePageState()
BasePageState.build(Model m, void f(Model m))
Builds the page based on the specified model

Properties

dispatch Dispatch<AppState>?
no setterinherited
equals List<Object?>
The List of properties which will be used to determine whether two BaseModels are equal.
finalinherited
getAndRemoveFirstError UserException? Function()
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state AppState
no setterinherited
widget Object?
You can pass the connector widget, in case the view-model needs any info from it.
finalinherited

Methods

dispatchAction(ReduxAction<AppState> action) Future<void>
Dispatches an action.
override
dispatchModel<Model extends BaseUIModel>(Model defaultModel, void f(Model m), [bool overwrite = false]) Future<void>
Sends an anonymous action given the data of a model of type BaseUIModel
override
fromStore() BaseModel
inherited
mutate<Model extends BaseUIModel>(Model defaultModel, void f(Model m), [bool overwrite = false]) → Model
Modifies the data of the model of type BaseUIModel stored the store
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop() → void
Removes the current route from the navigation stack
override
popUntil(bool predicate(Route)) → void
Removes all routes in the navigation stack until the condition specified in predicate is satisfied
override
push(Route route) → void
Puts a route object on top of the navigation stack
override
pushNamed(String route, {Object? arguments}) → void
Puts a route on top of the navigation stack
override
pushNamedAndRemoveAll(String route, {Object? arguments}) → void
Adds a route into the navigation stack and removes everything else
override
pushNamedAndRemoveUntil(String route, {Object? arguments, RoutePredicate? predicate}) → void
Adds a route into the navigation stack and removes everything until the condition specified in predicate is satisfied
override
pushReplacementNamed(String route, {Object? arguments}) → void
Replaces the current route with the specified route
override
read<Model extends BaseUIModel>(Model defaultModel) → Model
Reads a model of type BaseUIModel from the store
toString() String
A string representation of this object.
inherited
write<Model extends BaseUIModel>(Model defaultModel, void f(Model m), [bool overwrite = false]) AppState
Writes the data of the model of type BaseUIModel in the store

Operators

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