AltchaWidget constructor
AltchaWidget({
- Key? key,
- Object? challenge,
- HisCollector? collector,
- int concurrency = 4,
- bool debug = false,
- bool humanInteractionSignature = false,
- int minDuration = 500,
- DeriveKeyFunction? deriveKey,
- bool? hideLogo,
- ValueChanged<
Object> ? onFailed, - ValueChanged<
AltchaServerVerification> ? onServerVerification, - ValueChanged<
String> ? onVerified, - String? origin,
- Client? httpClient,
- 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 {};