getIpAddress method
Get Ip address of the system based on requestType.
Implementation
Future<dynamic> getIpAddress() async {
switch (requestType) {
case RequestType.text:
return await _networkRequest.getIpAddressText();
case RequestType.json:
return await _networkRequest.getIpAddressJson();
default:
return '0.0.0.0';
}
}