postWithKey method

Future<Response> postWithKey(
  1. String path,
  2. Map<String, dynamic> body
)

Implementation

Future<http.Response> postWithKey(
    String path, Map<String, dynamic> body) async {
  _preValidation();
  return http.post(new Uri.https(_host, _baseUrl + path, {"key": _apiKey}),
      body: jsonEncode(body), headers: {"Content-Type": "application/json"});
}