useOnAppLifecycleStateChange function

void useOnAppLifecycleStateChange(
  1. LifecycleCallback? onStateChanged
)

Listens to the AppLifecycleState.

Implementation

void useOnAppLifecycleStateChange(LifecycleCallback? onStateChanged) {
  use(_AppLifecycleHook(onStateChanged: onStateChanged));
}