BasePageState<Model extends BaseUIModel> class

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

Implemented types

Constructors

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

Properties

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

Methods

dispatchFutureModel<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
dispatchModel<Model extends BaseUIModel>(Model defaultModel, void f(Model m), [bool overwrite = false]) → 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 non-existent method or property is accessed. [...]
inherited
pop() → void
Removes the current route from the navigation stack
override
popUntil(String route) → void
Removes all routes in the navigation stack until the condition specified in predicate is satisfied
override
push(Route route, {Object arguments}) → 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
Returns 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