connectionServiceProvider top-level property

StateNotifierProvider<_ConnectionProvider, bool> connectionServiceProvider
final

Provides the current connection status of the device.

Implementation

final connectionServiceProvider =
    StateNotifierProvider<_ConnectionProvider, bool>((ref) {
  final connectionService = InternetAdressLookupConnectionService();

  return _ConnectionProvider(connectionService);
});