post method

Future post(
  1. String path, {
  2. Map<String, dynamic>? params,
  3. dynamic data,
  4. bool isLoading = false,
  5. bool needResponse = true,
  6. bool isCustomResponse = false,
  7. FailFunction? fail,
})

Implementation

Future post(
  String path, {
  Map<String, dynamic>? params,
  data,
  bool isLoading = false,
  bool needResponse = true,
  bool isCustomResponse = false,
  FailFunction? fail,
}) async {
  return request(path,
      method: "POST",
      params: params,
      data: data,
      isLoading: isLoading,
      needResponse: needResponse,
      isCustomResponse: isCustomResponse,
      fail: fail);
}