post method

Future post(
  1. BuildContext context,
  2. String url,
  3. Map<String, dynamic> payload, {
  4. Map<String, String>? header,
  5. bool responseData = true,
})

Implementation

Future post(BuildContext context, String url, Map<String, dynamic> payload,
    {Map<String, String>? header, bool responseData = true}) {
  return _send(context, 'post', url, header,
      payload: payload, responseData: responseData);
}