TurnstileOptions class
options
Constructors
- TurnstileOptions.new({TurnstileMode mode = TurnstileMode.managed, TurnstileSize size = TurnstileSize.normal, TurnstileTheme theme = TurnstileTheme.auto, String language = 'auto', Duration retryInterval = const Duration(milliseconds: 8000), bool retryAutomatically = true, TurnstileRefreshExpired refreshExpired = TurnstileRefreshExpired.auto, TurnstileRefreshTimeout refreshTimeout = TurnstileRefreshTimeout.auto})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String
-
Language to display, must be either: auto (default) to use the
language that the visitor has chosen, or an ISO 639-1 two-letter
language code (e.g. en) or language and country code (e.g. en-US).
Refer to the list of supported languages for more information.
Default value is
auto
final - mode → TurnstileMode
-
The Turnstile widget mode.
final
- refreshExpired → TurnstileRefreshExpired
-
Automatically refreshes the token when it expires.
Can take auto, manual or never, defaults to auto.
final
- refreshTimeout → TurnstileRefreshTimeout
-
Controls whether the widget should automatically refresh upon
entering an interactive challange and observing a timeout.
Can take
auto
(automaticly),manual
(prompts the visitor to manualy refresh) ornever
(will show a timeout), defaults toauto
Only applies to widgets of modemanaged
final - retryAutomatically → bool
-
Controls whether the widget should automatically retry to obtain
a token if it did not succeed. The default value is true witch will
retry Autmoatically. This can be set to false to disable retry upon
failure.
final
- retryInterval → Duration
-
When retry is set to
auto
, retryInterval controls the time between retry attempts in milliseconds. Value must be a positive integer less than 900000, defaults to 8000final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → TurnstileSize
-
The widget size. Can take the following values: TurnstileSize.normal, TurnstileSize.compact.
Default value is TurnstileSize.normal
final
- theme ↔ TurnstileTheme
-
The widget theme
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited