AnimatedButtonPainter constructor

AnimatedButtonPainter({
  1. required ButtonStatus buttonStatus,
  2. required ButtonProgress buttonProgress,
  3. double progress = 0.0,
  4. double value = 0.0,
  5. 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;
}