CustomTimerButton constructor

const CustomTimerButton({
  1. Key? key,
  2. required String label,
  3. String? disabledLabel,
  4. required VoidCallback onPressed,
  5. required int timeOutInSeconds,
  6. String secPostFix = _secPostFix,
  7. Color? color = Colors.blue,
  8. bool resetTimerOnPressed = true,
  9. Color disabledColor = Colors.grey,
  10. ButtonType buttonType = ButtonType.MaterialButton,
  11. TextStyle? activeTextStyle,
  12. TextStyle disabledTextStyle = const TextStyle(color: Colors.black45),
  13. BorderRadius? borderRadius,
  14. TextAlign? textAlign,
  15. ShapeBorder? shape,
  16. double? elevation = 2,
  17. double? width,
  18. double? height,
  19. MaterialStatesController? statesController,
  20. ButtonStyle? btnStyle,
})

Implementation

const CustomTimerButton({
  Key? key,
  required this.label,
  this.disabledLabel,
  required this.onPressed,
  required this.timeOutInSeconds,
  this.secPostFix = _secPostFix,
  this.color = Colors.blue,
  this.resetTimerOnPressed = true,
  this.disabledColor = Colors.grey,
  this.buttonType = ButtonType.MaterialButton,
  this.activeTextStyle,
  this.disabledTextStyle = const TextStyle(color: Colors.black45),
  this.borderRadius,
  this.textAlign,
  this.shape,
  this.elevation = 2,
  this.width,
  this.height,
  this.statesController,
  this.btnStyle,
}) : super(key: key);