BaseRequest<T> constructor
BaseRequest<T> ({
- RequestMethod method = RequestMethod.get,
- String? url,
- ResponseParser<
T> ? parser, - Map<
String, dynamic> ? query, - Duration? timeout,
- Map<
String, dynamic> ? headers, - dynamic body,
- String? baseUrl,
- bool requiresLogin = true,
- DatabaseGetDelegate<
T> ? databaseGetDelegate, - DatabasePutDelegate<
T> ? databasePutDelegate, - SimulateResponse? simulateResponse,
- Response<
T> ? simulateResult, - Future<
FormData> ? formData, - bool ignoreCancelations = false,
- void onPrefetchFromDatabase(
- T?
- 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 [],
});