DioAdapter constructor

DioAdapter({
  1. required Dio dio,
  2. HttpRequestMatcher matcher = const FullHttpRequestMatcher(),
  3. 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);
}