LifecycleStateListener
| Type name | Supports Property Animations | Controlled by default | May contain associated action | Link |
|---|---|---|---|---|
| LifecycleStateListener | ✗ | ✔️ | ✗ | - |
The widget is designed to trigger events when the application state changes and is implemented using WidgetsBindingObserver.
When the application state changes, the corresponding action is triggered if it was defined for this type of event.
Usage
- Go
LifecycleEvent(
&duit_attributes.LifecycleEventListenerAttributes[duit_core.RemoteAction]{
OnHidden: &duit_core.RemoteAction{
Event: "/some_endpoint",
DependsOn: []*duit_core.ActionDependency{},
},
},
"id",
nil, //child
)