FaceGateCloudProvider constructor

FaceGateCloudProvider({
  1. required String baseUrl,
  2. String? apiKey,
  3. Duration timeout = const Duration(seconds: 10),
  4. int retryCount = 1,
  5. String basePath = '/api/v1',
  6. Client? httpClient,
  7. LivenessChecker? livenessChecker,
})

Implementation

FaceGateCloudProvider({
  required this.baseUrl,
  this.apiKey,
  this.timeout = const Duration(seconds: 10),
  this.retryCount = 1,
  this.basePath = '/api/v1',
  http.Client? httpClient,
  LivenessChecker? livenessChecker,
})  : _client = httpClient ?? http.Client(),
      _livenessChecker = livenessChecker ?? const LivenessChecker(),
      _ownsClient = httpClient == null;