copyWith method
CustomDioOptions
copyWith(
{
- bool? followRedirects,
- bool? isProductionMode,
- String? baseUrl,
- String? errorPath,
- HttpClientAdapter? adapter,
- int? sendTimeout,
- List<Interceptor>? interceptorsList,
- int? receiveTimeout,
- int? connectTimeout,
- bool? logAllData,
})
Implementation
CustomDioOptions copyWith({
Map<String, String>? headers,
bool? followRedirects,
bool? isProductionMode,
String? baseUrl,
String? errorPath,
HttpClientAdapter? adapter,
int? sendTimeout,
List<Interceptor>? interceptorsList,
int? receiveTimeout,
int? connectTimeout,
bool? logAllData,
}) {
return CustomDioOptions(
headers: headers ?? this.headers,
followRedirects: followRedirects ?? this.followRedirects,
isProductionMode: isProductionMode ?? this.isProductionMode,
baseUrl: baseUrl ?? this.baseUrl,
errorPath: errorPath ?? this.errorPath,
adapter: adapter ?? this.adapter,
sendTimeout: sendTimeout ?? this.sendTimeout,
interceptorsList: interceptorsList ?? this.interceptorsList,
receiveTimeout: receiveTimeout ?? this.receiveTimeout,
connectTimeout: connectTimeout ?? this.connectTimeout,
logAllData: logAllData ?? this.logAllData,
);
}