put method

Future<String> put(
  1. String url, {
  2. Map<String, String>? headers,
})

Returns the body of the given url after a PUT request. This process is async, thus the body is returned as a future String instance.

Implementation

Future<String> put(String url, {Map<String, String>? headers}) async =>
    putBody(Uri.parse(url), headers: headers);