ApiRequest constructor

ApiRequest({
  1. required String url,
  2. String method = "post",
  3. String imageKey = "image",
  4. String postDataKey = "data",
  5. Duration? connectTimeout,
  6. Duration? sendTimeout,
  7. Duration? receiveTimeout,
  8. Map<String, dynamic>? headers,
  9. dynamic postData,
})

Implementation

ApiRequest({
  required this.url,
  this.method = "post",
  this.imageKey = "image",
  this.postDataKey = "data",
  this.connectTimeout,
  this.sendTimeout,
  this.receiveTimeout,
  this.headers,
  this.postData,
});