put method Null safety
Returns a Response
object with the response from the server.
If the request fails, the Response
object will have a null Response.body
Example:
final response = await "https://example.com/api/v1/users/1".put(
body: {'name': 'John Doe'},
headers: {'content-type': 'application/json'})
.put();
Implementation
Future<Response> put(Object body, {Map<String, dynamic>? headers}) async {
return await RequestHandler(this, body: body, headers: headers).put();
}