Presenter<P extends Presenter<P>> class abstract

Presenter is an abstract class that provides a base for implementing custom presenter classes. It includes methods for managing state, performing actions, and handling the lifecycle of the presenter.

Constructors

Presenter()

Properties

context BuildContext
Returns the current BuildContext for the presenter.
no setter
disposed bool
no setter
hashCode int
The hash code for this object.
no setterinherited
itSelf → P
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Called when the presenter is being disposed. This method should be overridden to release any resources held by the presenter.
init() → void
Called when the presenter is first created. This method can be overridden to perform additional initialization.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLayout() FutureOr<void>
Called when the layout phase of the frame is complete. This method can be overridden to perform additional actions.
perform<T>({void beforeAction()?, FutureOr<T> action()?, void onResult(T result)?, void onError(Object e)?, void afterAction()?, Function? methodSignature}) FutureOr<void>
Runs the given action and updates the state of the presenter. It can handle optional beforeAction, afterAction, and onError callbacks. Optionally, it can also provide an exactNotification callback to notify only a specific listener.
processing(Function methodSignature) bool
toString() String
A string representation of this object.
inherited

Operators

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