YmTimerButton constructor
YmTimerButton(
- String text, {
- required String hintText,
- required int second,
- required void onClick(),
- required void onTimeout(),
- double fontSize = 14,
- Size size = const Size(120, 42),
- FontWeight fontWeight = FontWeight.normal,
- Color textColor = const Color(0xFF666666),
- Color pressedBackgroundColor = const Color(0xFF606FFF),
- 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),
});