LifecycleController class
Lifecycle controller for managing widget/component lifecycle
- Inheritance
-
- Object
- ChangeNotifier
- LifecycleController
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isActive → bool
-
no setter
- isDisposed → bool
-
no setter
- isInitialized → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → LifecycleState
-
no setter
Methods
-
activate(
) → void - Activate the lifecycle
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
deactivate(
) → void - Deactivate the lifecycle
-
dispose(
) → void -
Complete disposal
override
-
getData<
T> (String key) → T? - Get data from lifecycle context
-
initialize(
) → void - Initialize the lifecycle
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
notifyListenersTransaction(
) → void -
Available on ChangeNotifier, provided by the TransactionNotifier extension
Notifies listeners, respecting transaction context. -
pause(
) → void - Pause the lifecycle
-
removeData(
String key) → void - Remove data from lifecycle context
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resume(
) → void - Resume the lifecycle
-
setData(
String key, dynamic value) → void - Store data in lifecycle context
-
startDisposing(
) → void - Start disposing
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited