app_events library

A Flutter package for observing app lifecycle and network connectivity state.

This library exports all core components:

Classes

AppStateObserver
Observes the app's lifecycle and reports state changes.
ConnectivityStateObserver
Observes the device's network connectivity state.
EventBusListener
A widget that listens for app lifecycle and network connectivity events.

Enums

AppState
Represents the lifecycle state of the app.
NetworkState
Represents the network connectivity state.

Typedefs

AppEventCallback = void Function(AppState state)
Signature for a callback triggered when the app's AppState changes.
ConnectivityEventCallback = void Function(NetworkState state)
Signature for a callback triggered when the NetworkState changes.