CountDown constructor

const CountDown({
  1. Key? key,
  2. Widget? space = DefaultSpace,
  3. Duration duration = const Duration(hours: 10, minutes: 30, seconds: 0),
  4. TextStyle textStyle = const TextStyle(color: Colors.white, backgroundColor: Colors.red),
  5. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(3)),
  6. bool only = false,
  7. bool onlyAutoStart = false,
  8. String onlyHint = "",
  9. Future<bool?> onTap()?,
  10. void timeOver()?,
  11. 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);