put method

Future<Response> put(
  1. String url, {
  2. Map<String, String>? headers,
  3. dynamic body,
  4. Client? httpClient,
})

Performs a PUT request to the specified url, adding the authorization token.

If no token already exists, or if it is expired, a new one is requested.

Implementation

Future<http.Response> put(String url,
    {Map<String, String>? headers,
    dynamic body,
    http.Client? httpClient}) async {
  return _request('PUT', url,
      headers: headers, body: body, httpClient: httpClient);
}