getDeviceIpAddress method
Implementation
@override
Future<String?> getDeviceIpAddress() async {
try {
final SharedPreferences _sharedPreferences =
await SharedPreferences.getInstance();
return _sharedPreferences.getString('currentIP');
} on Exception {
rethrow;
}
}