SmartApiRequest constructor

const SmartApiRequest({
  1. required String endpoint,
  2. ApiMethod method = ApiMethod.get,
  3. dynamic body,
  4. List<SmartApiFile>? files,
  5. Map<String, dynamic>? queryParams,
  6. bool? autoDetectFiles,
  7. bool forceMultipart = false,
  8. bool forceRaw = false,
  9. bool showLoader = true,
  10. Map<String, dynamic>? extraHeaders,
})

Creates a request. See the field docs above for defaults.

Implementation

const SmartApiRequest({
  required this.endpoint,
  this.method = ApiMethod.get,
  this.body,
  this.files,
  this.queryParams,
  this.autoDetectFiles,
  this.forceMultipart = false,
  this.forceRaw = false,
  this.showLoader = true,
  this.extraHeaders,
});