AltchaWidget constructor

AltchaWidget({
  1. Key? key,
  2. Map<String, dynamic>? challengeJson,
  3. String? challengeUrl,
  4. bool debug = false,
  5. int? delay,
  6. bool? hideFooter,
  7. ValueChanged<Object>? onFailed,
  8. ValueChanged<AltchaServerVerification>? onServerVerification,
  9. ValueChanged<String>? onVerified,
  10. String? verifyUrl,
  11. Client? httpClient,
  12. Map<String, String>? httpHeaders,
})

Implementation

AltchaWidget({
  super.key,
  this.challengeJson,
  this.challengeUrl,
  this.debug = false,
  this.delay,
  this.hideFooter,
  this.hideLogo,
  this.onFailed,
  this.onServerVerification,
  this.onVerified,
  this.verifyUrl,
  http.Client? httpClient,
  Map<String, String>? httpHeaders,
}) : httpClient = httpClient ?? http.Client(),
     httpHeaders = httpHeaders ?? const {};