CloudFlareTurnstile class
CloudFlareTurnstile widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CloudFlareTurnstile
Constructors
- CloudFlareTurnstile.new({Key? key, required String siteKey, String? action, String? cData, String baseUrl = 'http://localhost/', TurnstileOptions? options, TurnstileController? controller, OnTokenReceived? onTokenReceived, OnTokenExpired? onTokenExpired, VoidCallback? onWidgetReady, VoidCallback? onWidgetBeforeInteractive, VoidCallback? onWidgetAfterInteractive, OnError? onError})
Properties
- action → String?
-
Action parameter for the Turnstile service
final
- baseUrl → String
-
Base URL for the Turnstile service
final
- cData → String?
-
Custom payload for the Turnstile service
final
- controller → TurnstileController?
-
Controller for managing the Turnstile widget
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onError → OnError?
-
Callback for errors
final
- onTokenExpired → OnTokenExpired?
-
Callback when a token expires
final
- onTokenReceived → OnTokenReceived?
-
Callback when a token is received
final
- onWidgetAfterInteractive → VoidCallback?
-
Callback after the widget becomes interactive
final
- onWidgetBeforeInteractive → VoidCallback?
-
Callback before the widget becomes interactive
final
- onWidgetReady → VoidCallback?
-
Callback when the widget is ready
final
- options → TurnstileOptions
-
Options for configuring the Turnstile widget
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- siteKey → String
-
Site key for the Turnstile service
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CloudFlareTurnstile> -
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