BellaClientOptions constructor

BellaClientOptions({
  1. String baseUrl = 'https://api.bella-baxter.io',
  2. String? apiKey,
  3. String? accessToken,
  4. String? appClient,
  5. Duration connectTimeout = const Duration(seconds: 10),
  6. Duration receiveTimeout = const Duration(seconds: 30),
  7. SecretCache? cache,
  8. Uint8List? privateKey,
  9. void onWrappedDekReceived(
    1. String,
    2. String,
    3. String,
    4. DateTime?,
    )?,
})

Implementation

BellaClientOptions({
  this.baseUrl = 'https://api.bella-baxter.io',
  this.apiKey,
  this.accessToken,
  this.appClient,
  this.connectTimeout = const Duration(seconds: 10),
  this.receiveTimeout = const Duration(seconds: 30),
  this.cache,
  this.privateKey,
  this.onWrappedDekReceived,
}) : assert(
        (apiKey != null) != (accessToken != null),
        'Provide exactly one of apiKey or accessToken.',
      );