AltchaWidget class

Inheritance

Constructors

AltchaWidget({Key? key, Object? challenge, HisCollector? collector, int concurrency = 4, bool debug = false, bool humanInteractionSignature = false, int minDuration = 500, DeriveKeyFunction? deriveKey, bool? hideFooter, ValueChanged<Object>? onFailed, ValueChanged<AltchaServerVerification>? onServerVerification, ValueChanged<String>? onVerified, String? origin, Client? httpClient, Map<String, String>? httpHeaders})

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 setterinherited
hideFooter bool?
Hide the footer text.
final
Hide the ALTCHA logo.
final
httpClient → Client
Custom HTTP client.
final
httpHeaders Map<String, String>?
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.
finalinherited
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 setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() AltchaWidgetState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited