put library

Functions

put(Uri url, dynamic data) Future<Map<String, dynamic>>
This function sends a PUT request to the specified URL with the given data and returns the response as a JSON object. If the response is null, it returns an error object with "error: true" field. Otherwise, it returns an object with "error: false" field and the response data.