onActivated function
void
onActivated(
- void callback()
Registers a callback to run when the widget is reactivated.
This is called when a deactivated widget is reinserted into the tree.
Example:
@override
setup(context, props) {
onActivated(() {
print('Widget reactivated');
});
return () => Text('Hello');
}
Implementation
void onActivated(void Function() callback) {
useHook(_OnActivatedHook(callback));
}