Controller<E extends ViewEvent, P extends Presenter<ViewEvent, ViewState> > class
abstract
Controller defines an interfance for Controller components in Presentation layer.
- Implemented types
Constructors
- Controller(P presenter)
-
Constructor for Controller that is used to inject dependencies to
to a Presenter and
ViewContext.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- presenter → P
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get<
T> ({String dependencyName = ""}) → T - A utility method for simple dependency injection.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onViewActivate(
) → dynamic - Called when the View is re-inserted into the widget after being removed by deactivation.
-
onViewCreate(
) → dynamic - Upon creation of the View, which is a StatefulWidget, its constructor is called, which initializes View the widget. The createState() method is then invoked, which creates the state object for the widget.
-
onViewDeactivate(
) → dynamic - Called when the View is removed from the widget tree but might be inserted again.
-
onViewDispose(
) → dynamic - Called when the View is removed from the widget tree permanently, allowing you to release resources held by the View.
-
onViewEvent(
E event) → dynamic -
Receives and handles an
eventemitted by a View in the UI layer. -
onViewInit(
) → dynamic - Called after the View is inserted into the widget tree, when the state object is created for the first time.
-
onViewReassemble(
) → dynamic - Called when the View is reassembled among reassembling the application during a hot reload.
-
onViewUpdate(
) → dynamic - Called when the View is rebuilt with updated properties.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited