onConnectivityChange property

VoidCallback? onConnectivityChange
getter/setter pair

A void callback called everytime the connectivity is changes.

You can make use of this property as you like, for example: show a snack bar to inform the user about the connectivity status.

Implementation

VoidCallback? onConnectivityChange;