APIRequest<T> constructor

const APIRequest<T>(
  1. String url, {
  2. RequestType type = RequestType.get,
  3. Map<String, String> headers = const {},
  4. Map<String, dynamic>? data,
  5. List<MultipartFile> files = const [],
  6. dynamic onFilesUpload(
    1. int bytes,
    2. int totalBytes
    )?,
  7. bool log = false,
  8. String errorsField = 'errors',
  9. Encoding? encoding,
})

Implementation

const APIRequest(
  this.url, {
  this.type = RequestType.get,
  this.headers = const {},
  this.data,
  this.files = const [],
  this.onFilesUpload,
  this.log = false,
  this.errorsField = 'errors',
  this.encoding,
});