SmartRequest<T> constructor
const
SmartRequest<T> ({
- required String path,
- HttpMethod method = HttpMethod.get,
- dynamic data,
- Map<
String, dynamic> ? queryParameters, - Map<
String, String> ? headers, - Duration? timeout,
- CancelToken? cancelToken,
- bool isFormData = false,
- JsonDecoder<
T> ? fromJson, - BytesDecoder<
T> ? fromBytes, - 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,
});