connectivity library Null safety

Contains the bloc needed to manage internet connectivity status, and the widgets used to listen and display bloc changes.

Classes

ConnectivityBloc
Manages the internet connection status, using the Connectivity library. Recieves ConnectivityEvent and emits ConnectivityState.
ConnectivityEvent
Base class for ConnectivityBloc events.
ConnectivityListener
Listens for changes on ConnectivityBloc. If connectivity is lost, displays a dialog informing of the situation, if connectivity is retrieved after losing it, hides the dialog and shows an informative snackbar.
ConnectivityLost
Event of ConnectivityBloc Indicates that the internet connection has been lost, so it is unavailable.
ConnectivityLostDialog
The dialog displayed when internet connection is lost. Locks the app while it is visible, so the app can only be used when there is an available internet connection.
ConnectivityRequested
Event of ConnectivityBloc. Indicates that a listening request of connectivity changes was sent.
ConnectivityRetrieved
Event of ConnectivityBloc Indicates that the internet connection has been retrieved, so it is available.

Enums

ConnectivityState
Reflects internet connection check status. Emitted by ConnectivityBloc.