deleteMethod static method

Future deleteMethod(
  1. String url,
  2. String token
)

Implementation

static Future<dynamic> deleteMethod(String url, String token) async {
  var response = await client.delete(
    Uri.parse(url),
    headers: <String, String>{
      'Content-Type': 'application/json; charset=UTF-8',
      'Authorization': token,
    },
  );
  return response;
}