update method

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

Implementation

Future update(BuildContext context, String url, var id,
    {Map<String, dynamic>? payload,
    Map<String, String>? header,
    bool responseData = true}) {
  return _send(context, 'put', '$url/$id', header,
      payload: payload, responseData: responseData);
}