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