TimerWidget constructor
TimerWidget({
- Key? key,
- required void onTap(),
- bool enabled = true,
- required String text,
- required String heroTag,
- bool showProgress = false,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- required Duration duration,
- required bool showNext,
- void onTick()?,
- required Color textColor,
- required Color background,
- required Color progressColor,
- 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);