CountDown.only constructor
const
CountDown.only({
- bool only = true,
- bool onlyAutoStart = false,
- Widget? space,
- void timeOver()?,
- Duration duration = const Duration(seconds: 60),
- required String onlyHint,
- required Future<
bool?> onTap()?, - required Widget build(
- BuildContext buildContext,
- Widget child
- TextStyle textStyle = const TextStyle(color: Colors.white, backgroundColor: Colors.red),
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(3)),
Implementation
const CountDown.only({
this.only = true,
this.onlyAutoStart = false,
this.space,
this.timeOver,
this.duration = const Duration(seconds: 60),
required this.onlyHint,
required this.onTap,
required this.build,
this.textStyle =
const TextStyle(color: Colors.white, backgroundColor: Colors.red),
this.borderRadius = const BorderRadius.all(Radius.circular(3)),
}) : this.backgroundColor = null;