InterceptorsWrapper constructor Null safety

InterceptorsWrapper(
  1. {InterceptorSendCallback? onRequest,
  2. InterceptorSuccessCallback? onResponse,
  3. InterceptorErrorCallback? onError}
)

Implementation

InterceptorsWrapper({
  InterceptorSendCallback? onRequest,
  InterceptorSuccessCallback? onResponse,
  InterceptorErrorCallback? onError,
})  : _onRequest = onRequest,
      _onResponse = onResponse,
      _onError = onError;