CustomTimerButton constructor
const
CustomTimerButton({
- Key? key,
- required String label,
- String? disabledLabel,
- required VoidCallback onPressed,
- required int timeOutInSeconds,
- String secPostFix = _secPostFix,
- Color? color = Colors.blue,
- bool resetTimerOnPressed = true,
- Color disabledColor = Colors.grey,
- ButtonType buttonType = ButtonType.MaterialButton,
- TextStyle? activeTextStyle,
- TextStyle disabledTextStyle = const TextStyle(color: Colors.black45),
- BorderRadius? borderRadius,
- TextAlign? textAlign,
- ShapeBorder? shape,
- double? elevation = 2,
- double? width,
- double? height,
- MaterialStatesController? statesController,
- 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);