SmartRequest<T> constructor

const SmartRequest<T>({
  1. required String path,
  2. HttpMethod method = HttpMethod.get,
  3. dynamic data,
  4. Map<String, dynamic>? queryParameters,
  5. Map<String, String>? headers,
  6. Duration? timeout,
  7. CancelToken? cancelToken,
  8. bool isFormData = false,
  9. JsonDecoder<T>? fromJson,
  10. BytesDecoder<T>? fromBytes,
  11. RawResponseDecoder<T>? fromResponse,
})

Implementation

const SmartRequest({
  required this.path,
  this.method = HttpMethod.get,
  this.data,
  this.queryParameters,
  this.headers,
  this.timeout,
  this.cancelToken,
  this.isFormData = false,
  this.fromJson,
  this.fromBytes,
  this.fromResponse,
});