VerifyCodeConfig class

验证码配置

Constructors

VerifyCodeConfig({required String captchaId, int timeoutInterval = 10, VerifyCodeMode mode = VerifyCodeMode.Normal, bool openFallBack = true, int fallBackCount = 3, bool ipv6 = false, bool closeButtonHidden = true, bool shouldCloseByTouchBackground = false, bool enableLog = false})

Properties

captchaId String
验证码id
getter/setter pair
closeButtonHidden bool
是否隐藏关闭按钮 默认不隐藏,设置为YES隐藏,NO不隐藏
getter/setter pair
enableLog bool
是否开启sdk日志打印
getter/setter pair
fallBackCount int
设置发生第fallBackCount次错误时,将触发降级。取值范围 >=1 默认设置为3次,第三次服务器发生错误时,触发降级,直接通过验证。
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ipv6 bool
验证码ipv6配置。 默认为 no,传 yes 表示支持ipv6网络。
getter/setter pair
mode VerifyCodeMode
验证码类型
getter/setter pair
openFallBack bool
设置极端情况下,当验证码服务不可用时,是否开启降级方案。 默认开启,当触发降级开关时,将直接通过验证,进入下一步。
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldCloseByTouchBackground bool
点击背景是否可以关闭验证码视图 默认可以关闭
getter/setter pair
timeoutInterval int
加载验证码的超时时间,最长12s。这个时间尽量设置长一些,比如7秒以上(7-12s)
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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