TimerWidget constructor

TimerWidget({
  1. Key? key,
  2. required void onTap(),
  3. bool enabled = true,
  4. required String text,
  5. required String heroTag,
  6. bool showProgress = false,
  7. EdgeInsetsGeometry? padding,
  8. EdgeInsetsGeometry? margin,
  9. required Duration duration,
  10. required bool showNext,
  11. void onTick(
    1. Duration
    )?,
  12. required Color textColor,
  13. required Color background,
  14. required Color progressColor,
  15. required Color nextTextColor,
})

Implementation

TimerWidget(
    {Key? key,
      required this.onTap,
      this.enabled = true,
      required this.text,
      required this.heroTag,
      this.showProgress=false,
      this.padding,
      this.margin,
      required this.duration,
      required this.showNext,
      this.onTick,
      required this.textColor,
      required this.background,
      required this.progressColor,
      required this.nextTextColor,
    })
    : super(key: key);