post method

Future<Response> post(
  1. String key, {
  2. dynamic data,
  3. String? token,
  4. String? contentType,
})

Implementation

Future<response_helper.Response> post(
  String key, {
  dynamic data,
  String? token,
  String? contentType,
}) {
  final item = getPathItem(key);
  if (data != null) item.setData(data);
  return request(item, token: token, contentType: contentType);
}