CelestHttpClient constructor

CelestHttpClient({
  1. NativeSecureStorage? secureStorage,
  2. Authenticator? authenticator,
  3. Client? baseClient,
  4. Logger? logger,
})

Implementation

CelestHttpClient({
  NativeSecureStorage? secureStorage,
  Authenticator? authenticator,
  http.Client? baseClient,
  Logger? logger,
})  : _authenticator = authenticator ??
          Authenticator(
            secureStorage: secureStorage ?? NativeSecureStorage(),
          ),
      _ownsInner = baseClient == null,
      _inner = baseClient ?? createHttpClient(),
      _logger = logger;