put<T> method

Future<FlexResponse<T>> put<T>(
  1. String path, {
  2. Map<String, String>? headers,
  3. dynamic body,
  4. T decoder(
    1. dynamic
    )?,
})

Sends a PUT request to path with an optional body.

Implementation

Future<FlexResponse<T>> put<T>(
  String path, {
  Map<String, String>? headers,
  dynamic body,
  T Function(dynamic)? decoder,
}) =>
    _request<T>('PUT', path, headers: headers, body: body, decoder: decoder);