KatTimerButton constructor

const KatTimerButton({
  1. Key? key,
  2. required String label,
  3. required VoidCallback onPressed,
  4. required int timeOutInSeconds,
  5. String secPostFix = _secPostFix,
  6. Color color = Colors.blue,
  7. bool resetTimerOnPressed = true,
  8. bool timeUpFlag = false,
  9. Color disabledColor = Colors.grey,
  10. ButtonType buttonType = ButtonType.elevatedButton,
  11. TextStyle? activeTextStyle,
  12. 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;