Progress constructor

const Progress({
  1. Key? key,
  2. double? progress,
  3. double min = 0.0,
  4. double max = 1.0,
  5. bool disableAnimation = false,
  6. Color? color,
  7. Color? backgroundColor,
})

Creates a new Progress instance.

Implementation

const Progress({
  super.key,
  this.progress,
  this.min = 0.0,
  this.max = 1.0,
  this.disableAnimation = false,
  this.color,
  this.backgroundColor,
}) : assert(progress != null && progress >= min && progress <= max,
          'Progress must be between min and max');