YmTimerButton constructor

YmTimerButton(
  1. String text, {
  2. required String hintText,
  3. required int second,
  4. required void onClick(),
  5. required void onTimeout(),
  6. double fontSize = 14,
  7. Size size = const Size(120, 42),
  8. FontWeight fontWeight = FontWeight.normal,
  9. Color textColor = const Color(0xFF666666),
  10. Color pressedBackgroundColor = const Color(0xFF606FFF),
  11. Color backgroundColor = const Color(0xFF3446F2),
})

Implementation

YmTimerButton(
  this.text, {
  required this.hintText,
  required this.second,
  required this.onClick,
  required this.onTimeout,
  this.fontSize = 14,
  this.size = const Size(120, 42),
  this.fontWeight = FontWeight.normal,
  this.textColor = const Color(0xFF666666),
  this.pressedBackgroundColor = const Color(0xFF606FFF),
  this.backgroundColor = const Color(0xFF3446F2),
});