post<K> method

Future<Response<K>> post<K>(
  1. String action, {
  2. dynamic body,
  3. bool protected = true,
  4. void onSendProgress(
    1. int,
    2. int
    )?,
  5. void onReceiveProgress(
    1. int,
    2. int
    )?,
  6. bool verbose = false,
})

Implementation

Future<Response<K>> post<K>(
  String action, {
  dynamic body,
  bool protected = true,
  void Function(int, int)? onSendProgress,
  void Function(int, int)? onReceiveProgress,
  bool verbose = false,
}) {
  return apiClient.post<K>(
    '$url$action/',
    body: body,
    protected: protected,
    verbose: verbose,
  );
}