VCountDownBtn constructor

const VCountDownBtn({
  1. Key? key,
  2. Future<bool> onSend()?,
  3. int duration = 60,
  4. String idleText = '获取验证码',
  5. String finishedText = '重新发送',
  6. String countdownTextBuilder(
    1. int seconds
    )?,
  7. VoidCallback? onCountdownFinish,
  8. AccountValidateType? accountType,
  9. String accountGetter()?,
  10. void onValidateFailed(
    1. String message
    )?,
  11. String? customValidator()?,
  12. VButtonType type = VButtonType.primary,
  13. Color? color,
  14. String? bgColor,
  15. String? textColor,
  16. Gradient? gradient,
  17. bool round = false,
  18. bool block = false,
  19. double? width,
  20. double? height,
  21. double? fontSize,
  22. EdgeInsets? padding,
  23. EdgeInsets margin = EdgeInsets.zero,
  24. BorderRadius? radius,
  25. 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,
});