post static method

Future<Response?> post({
  1. required Client client,
  2. required String url,
})

Implementation

static Future<http.Response?> post(
    {required Client client, required String url}) async {
  try {
    if (await RequestService.checkInternet() == true) {
      return await client.post(Uri.parse(url));
    } else {
      return null;
    }
  } catch (e) {
    return null;
  }
}