update method
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);
}