import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:immich_mobile/services/network.service.dart'; final networkProvider = StateNotifierProvider((ref) { return NetworkNotifier( ref.watch(networkServiceProvider), ); }); class NetworkNotifier extends StateNotifier { final NetworkService _networkService; NetworkNotifier(this._networkService) : super(''); Future getWifiName() { return _networkService.getWifiName(); } Future getWifiReadPermission() { return _networkService.getLocationWhenInUserPermission(); } Future getWifiReadBackgroundPermission() { return _networkService.getLocationAlwaysPermission(); } Future requestWifiReadPermission() { return _networkService.requestLocationWhenInUsePermission(); } Future requestWifiReadBackgroundPermission() { return _networkService.requestLocationAlwaysPermission(); } Future openSettings() { return _networkService.openSettings(); } }