AnimatedCountdownTimer constructor
const
AnimatedCountdownTimer({
- Key? key,
- int initialCount = 3,
- Color textColor = Colors.white,
- Color overlayColor = const Color.fromRGBO(0, 0, 0, 0.7),
- bool enableDoneText = true,
- double doneTextFontSize = 22,
- double numFontSize = 22,
- String doneText = "GO!",
- VoidCallback? onStart,
- VoidCallback? onDone,
- String fontFamily = "BungeeRegular",
Constructor to create an AnimatedCountdownTimer with various customization options.
Implementation
const AnimatedCountdownTimer({
Key? key,
this.initialCount = 3,
this.textColor = Colors.white,
this.overlayColor = const Color.fromRGBO(0, 0, 0, 0.7),
this.enableDoneText = true,
this.doneTextFontSize = 22,
this.numFontSize = 22,
this.doneText = "GO!",
this.onStart,
this.onDone,
this.fontFamily = "BungeeRegular",
}) : super(key: key);