VCountDownBtn constructor
const
VCountDownBtn({
- Key? key,
- Future<
bool> onSend()?, - int duration = 60,
- String idleText = '获取验证码',
- String finishedText = '重新发送',
- String countdownTextBuilder(
- int seconds
- VoidCallback? onCountdownFinish,
- AccountValidateType? accountType,
- String accountGetter()?,
- void onValidateFailed(
- String message
- String? customValidator()?,
- VButtonType type = VButtonType.primary,
- Color? color,
- String? bgColor,
- String? textColor,
- Gradient? gradient,
- bool round = false,
- bool block = false,
- double? width,
- double? height,
- double? fontSize,
- EdgeInsets? padding,
- EdgeInsets margin = EdgeInsets.zero,
- BorderRadius? radius,
- TextStyle? textStyle,
Implementation
const VCountDownBtn({
super.key,
this.onSend,
this.duration = 60,
this.idleText = '获取验证码',
this.finishedText = '重新发送',
this.countdownTextBuilder,
this.onCountdownFinish,
this.accountType,
this.accountGetter,
this.onValidateFailed,
this.customValidator,
this.type = VButtonType.primary,
this.color,
this.bgColor,
this.textColor,
this.gradient,
this.round = false,
this.block = false,
this.width,
this.height,
this.fontSize,
this.padding,
this.margin = EdgeInsets.zero,
this.radius,
this.textStyle,
});