getMyIP function

Future<ClientIP> getMyIP()

getMyIP handles the client connection to the API. It returns a ClientIP instance.

Implementation

Future<ClientIP> getMyIP() async {
  final r = await RequestHandler.handleRequest();

  return ClientIP.fromJson(r);
}