TrustPinDioInterceptor constructor
- TrustPin? instance,
Creates a new TrustPinDioInterceptor.
When instance is provided, the interceptor uses that TrustPin instance
for certificate validation. When null, TrustPin.shared is used.
The TrustPin instance must be properly configured with TrustPin.setup before making requests with this interceptor.
Implementation
TrustPinDioInterceptor({TrustPin? instance})
: _instance = instance ?? TrustPin.shared;