CountDown constructor
const
CountDown({
- Key? key,
- Widget? space = DefaultSpace,
- Duration duration = const Duration(hours: 10, minutes: 30, seconds: 0),
- TextStyle textStyle = const TextStyle(color: Colors.white, backgroundColor: Colors.red),
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(3)),
- bool only = false,
- bool onlyAutoStart = false,
- String onlyHint = "",
- Future<
bool?> onTap()?, - void timeOver()?,
- Color? backgroundColor,
Implementation
const CountDown({
Key? key,
this.space = DefaultSpace,
this.duration = const Duration(hours: 10, minutes: 30, seconds: 0),
this.textStyle =
const TextStyle(color: Colors.white, backgroundColor: Colors.red),
this.borderRadius = const BorderRadius.all(Radius.circular(3)),
this.only = false,
this.onlyAutoStart = false,
this.onlyHint = "",
this.onTap,
this.timeOver,
this.backgroundColor,
}) : this.build = null,
super(key: key);