AnimatedButtonPainter constructor
AnimatedButtonPainter({
- required ButtonStatus buttonStatus,
- required ButtonProgress buttonProgress,
- double progress = 0.0,
- double value = 0.0,
- double statusValue = 1.0,
Implementation
AnimatedButtonPainter({
required this.buttonStatus,
required this.buttonProgress,
this.progress = 0.0,
this.value = 0.0,
this.statusValue = 1.0,
}) {
progress = progress > 100 ? 100 : progress;
value = value > 1 ? 1 : value;
statusValue = statusValue > 1 ? 1 : statusValue;
}