CountDown.only constructor

const CountDown.only({
  1. bool only = true,
  2. bool onlyAutoStart = false,
  3. Widget? space,
  4. void timeOver()?,
  5. Duration duration = const Duration(seconds: 60),
  6. required String onlyHint,
  7. required Future<bool?> onTap()?,
  8. required Widget build(
    1. BuildContext buildContext,
    2. Widget child
    )?,
  9. TextStyle textStyle = const TextStyle(color: Colors.white, backgroundColor: Colors.red),
  10. 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;