post static method

Future<Response> post(
  1. String url,
  2. Map<String, dynamic> body
)

Implementation

static Future<http.Response> post(String url, Map<String, dynamic> body) async {
  return _client.post(Uri.parse(url),
      headers: {'Content-Type': 'application/json'},
      body: body != null ? jsonEncode(body) : null);
}