DioAdapter constructor
DioAdapter({
- required Dio dio,
- HttpRequestMatcher matcher = const FullHttpRequestMatcher(),
- bool printLogs = false,
Constructs a DioAdapter and configures the passed Dio
instance.
Implementation
DioAdapter({
required this.dio,
this.matcher = const FullHttpRequestMatcher(),
this.printLogs = false,
}) {
dio.httpClientAdapter = this;
logger = getLogger(printLogs);
}