CountDownProgressIndicator constructor
const
CountDownProgressIndicator({
- Key? key,
- required int duration,
- int initialPosition = 0,
- required Color backgroundColor,
- required Color valueColor,
- CountDownController? controller,
- Function? onComplete,
- TextStyle? timeTextStyle,
- String timeFormatter(
- int seconds
- TextStyle? labelTextStyle,
- double strokeWidth = 10,
- String? text,
- bool autostart = true,
Implementation
const CountDownProgressIndicator({
super.key,
required this.duration,
this.initialPosition = 0,
required this.backgroundColor,
required this.valueColor,
this.controller,
this.onComplete,
this.timeTextStyle,
this.timeFormatter,
this.labelTextStyle,
this.strokeWidth = 10,
this.text,
this.autostart = true,
}) : assert(duration > 0),
assert(initialPosition < duration);