AurisProgressBar constructor

const AurisProgressBar({
  1. Key? key,
  2. required double value,
  3. String? label,
  4. String? valueLabel,
  5. int segments = 20,
  6. AurisProgressVariant variant = AurisProgressVariant.primary,
  7. double height = 10,
  8. double spacing = 2,
})

Creates a segmented progress meter that renders value immediately.

Implementation

const AurisProgressBar({
  super.key,
  required this.value,
  this.label,
  this.valueLabel,
  this.segments = 20,
  this.variant = AurisProgressVariant.primary,
  this.height = 10,
  this.spacing = 2,
}) : animated = false,
     assert(value >= 0 && value <= 1, 'value must be in 0..1'),
     assert(segments > 0, 'segments must be positive');