getDeviceIpAddress method

  1. @override
Future<String?> getDeviceIpAddress()
override

Implementation

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