KatTimerButton constructor
const
KatTimerButton({
- Key? key,
- required String label,
- required VoidCallback onPressed,
- required int timeOutInSeconds,
- String secPostFix = _secPostFix,
- Color color = Colors.blue,
- bool resetTimerOnPressed = true,
- bool timeUpFlag = false,
- Color disabledColor = Colors.grey,
- ButtonType buttonType = ButtonType.elevatedButton,
- TextStyle? activeTextStyle,
- TextStyle disabledTextStyle = const TextStyle(color: Colors.black45),
Implementation
const KatTimerButton({
super.key,
required this.label,
required this.onPressed,
required this.timeOutInSeconds,
this.secPostFix = _secPostFix,
this.color = Colors.blue,
this.resetTimerOnPressed = true,
this.timeUpFlag = false,
this.disabledColor = Colors.grey,
this.buttonType = ButtonType.elevatedButton,
this.activeTextStyle,
this.disabledTextStyle = const TextStyle(color: Colors.black45),
}) : builder = null;