AltchaWidget constructor

AltchaWidget({
  1. Key? key,
  2. Object? challenge,
  3. HisCollector? collector,
  4. int concurrency = 4,
  5. bool debug = false,
  6. bool humanInteractionSignature = false,
  7. int minDuration = 500,
  8. DeriveKeyFunction? deriveKey,
  9. bool? hideFooter,
  10. ValueChanged<Object>? onFailed,
  11. ValueChanged<AltchaServerVerification>? onServerVerification,
  12. ValueChanged<String>? onVerified,
  13. String? origin,
  14. Client? httpClient,
  15. Map<String, String>? httpHeaders,
})

Implementation

AltchaWidget({
  super.key,
  this.challenge,
  this.collector,
  this.concurrency = 4,
  this.debug = false,
  this.humanInteractionSignature = false,
  this.minDuration = 500,
  this.deriveKey,
  this.hideFooter,
  this.hideLogo,
  this.onFailed,
  this.onServerVerification,
  this.onVerified,
  this.origin,
  http.Client? httpClient,
  Map<String, String>? httpHeaders,
}) : httpClient = httpClient ?? http.Client(),
     httpHeaders = httpHeaders ?? const {};