getIP method
Retrieves the IP address.
Implementation
@override
Future<String> getIP() async {
try {
var ipAddress = IpAddress(type: RequestType.json);
dynamic data = await ipAddress.getIpAddress();
return data.toString();
} on IpAddressException catch (exception) {
print(exception.message);
return 'Failed to get IP address.';
}
}