BaseOptions constructor
BaseOptions({
- String? method,
- Duration? connectTimeout,
- Duration? receiveTimeout,
- Duration? sendTimeout,
- String baseUrl = '',
- Map<
String, dynamic> ? queryParameters, - Map<
String, dynamic> ? extra, - Map<
String, dynamic> ? headers, - bool? preserveHeaderCase = false,
- ResponseType? responseType = ResponseType.json,
- String? contentType,
- ValidateStatus? validateStatus,
- bool? receiveDataWhenStatusError,
- bool? followRedirects,
- int? maxRedirects,
- bool? persistentConnection,
- RequestEncoder? requestEncoder,
- ResponseDecoder? responseDecoder,
- ListFormat? listFormat,
Implementation
BaseOptions({
super.method,
Duration? connectTimeout,
super.receiveTimeout,
super.sendTimeout,
String baseUrl = '',
Map<String, dynamic>? queryParameters,
super.extra,
super.headers,
super.preserveHeaderCase = false,
super.responseType = ResponseType.json,
super.contentType,
super.validateStatus,
super.receiveDataWhenStatusError,
super.followRedirects,
super.maxRedirects,
super.persistentConnection,
super.requestEncoder,
super.responseDecoder,
super.listFormat,
}) {
this.baseUrl = baseUrl;
this.queryParameters = queryParameters ?? {};
this.connectTimeout = connectTimeout;
}