ProgressBar constructor

const ProgressBar({
  1. Key? key,
  2. double height = 4.5,
  3. required double value,
  4. Color? trackColor,
  5. Color? backgroundColor,
  6. String? semanticLabel,
})

Creates a new progress bar

height more be non-negative

value must be in the range of 0 and 100

Implementation

const ProgressBar({
  super.key,
  this.height = 4.5,
  required this.value,
  this.trackColor,
  this.backgroundColor,
  this.semanticLabel,
})  : assert(value >= 0 && value <= 100),
      assert(height >= 0);