BaseRequest<T> constructor

BaseRequest<T>({
  1. RequestMethod method = RequestMethod.get,
  2. String? url,
  3. ResponseParser<T>? parser,
  4. Map<String, dynamic>? query,
  5. Duration? timeout,
  6. Map<String, dynamic>? headers,
  7. dynamic body,
  8. String? baseUrl,
  9. bool requiresLogin = true,
  10. DatabaseGetDelegate<T>? databaseGetDelegate,
  11. DatabasePutDelegate<T>? databasePutDelegate,
  12. SimulateResponse? simulateResponse,
  13. Response<T>? simulateResult,
  14. Future<FormData>? formData,
  15. bool ignoreCancelations = false,
  16. void onPrefetchFromDatabase(
    1. T?
    )?,
  17. Iterable<Interceptor> additionalInterceptors = const [],
})

Implementation

BaseRequest({
  this.method = RequestMethod.get,
  this.url,
  this.parser,
  this.query,
  this.timeout,
  this.headers,
  this.body,
  this.baseUrl,
  this.requiresLogin = true,
  this.databaseGetDelegate,
  this.databasePutDelegate,
  this.simulateResponse,
  this.simulateResult,
  this.formData,
  this.ignoreCancelations = false,
  this.onPrefetchFromDatabase,
  this.additionalInterceptors = const [],
});