post method

Future<Response> post (dynamic url, { Map<String, String> headers, dynamic body, Encoding encoding })

Implementation

Future<Response> post(url, {Map<String, String> headers, body,
  Encoding encoding}) async{
  if (!hasExpired) {
    return await http.post(url, headers: headers, body:body);
  } else {
    await build();
    return await http.post(url, headers: headers, body:body);
  }
}