CustomProgressBar constructor

const CustomProgressBar({
  1. Key? key,
  2. required double value,
  3. Color backgroundColor = Colors.grey,
  4. Color progressColor = Colors.blue,
  5. double height = 10.0,
  6. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8)),
  7. Duration animationDuration = const Duration(milliseconds: 300),
})

Implementation

const CustomProgressBar({
  Key? key,
  required this.value,
  this.backgroundColor = Colors.grey,
  this.progressColor = Colors.blue,
  this.height = 10.0,
  this.borderRadius = const BorderRadius.all(Radius.circular(8)),
  this.animationDuration = const Duration(milliseconds: 300),
}) : super(key: key);