AltchaWidget class
Constructors
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 , })
Properties
challenge
→ Object ?
The challenge source — either a URL String to fetch from, or a
pre-fetched Map<String, dynamic> JSON object.
final
collector
→ HisCollector ?
Optional externally-managed HisCollector instance.
final
concurrency
→ int
Number of isolates to use for parallel solving on native platforms.
Defaults to 4. Set to 1 to disable parallel solving.
final
debug
→ bool
Enable verbose debug logging.
final
deriveKey
→ DeriveKeyFunction ?
Custom key-derivation function.
final
hashCode
→ int
The hash code for this object.
no setter inherited
Hide the footer text.
final
hideLogo
→ bool ?
Hide the ALTCHA logo.
final
httpClient
→ Client
Custom HTTP client.
final
Additional HTTP headers for challenge and verification requests.
final
humanInteractionSignature
→ bool
Enable the Human Interaction Signature (HIS) collector.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
minDuration
→ int
Minimum duration the verification UI should remain in the "verifying"
state, in milliseconds. Ensures the progress indicator is visible long
enough to give the user meaningful feedback even when solving is fast.
Defaults to 500 ms.
final
onFailed
→ ValueChanged <Object > ?
Called when an error occurs during verification.
final
onServerVerification
→ ValueChanged <AltchaServerVerification > ?
Called with the server verification result when the server returns
verification data.
final
onVerified
→ ValueChanged <String > ?
Called with the base64-encoded payload after successful verification.
final
origin
→ String ?
Application origin sent as the Origin header on native platforms.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited