Skip to main content

LifecycleStateListener

Type nameSupports Property AnimationsControlled by defaultMay contain associated actionLink
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​

LifecycleEvent(
&duit_attributes.LifecycleEventListenerAttributes[duit_core.RemoteAction]{
OnHidden: &duit_core.RemoteAction{
Event: "/some_endpoint",
DependsOn: []*duit_core.ActionDependency{},
},
},
"id",
nil, //child
)