put abstract method
Sends a PUT request to endpoint.
Use for full replacement of a resource. The request body in data should
contain the complete updated representation.
Example:
final result = await _api.put(
endpoint: '/users/42',
data: updatedUser.toJson(),
);
Implementation
Future<Either<Failure, Response>> put({
required String endpoint,
Object? data,
Map<String, dynamic>? params,
Duration? receiveTimeout,
Duration? sendTimeout,
Map<String, String>? headers,
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
CancelToken? cancelToken,
bool showLoader = true,
});