BsProgressBar constructor

const BsProgressBar({
  1. Key? key,
  2. required double value,
  3. String? label,
  4. BsVariant? variant = BsVariant.primary,
  5. bool striped = false,
  6. bool animated = false,
  7. Color? color,
  8. Color? textColor,
})

Creates a BsProgressBar.

Implementation

const BsProgressBar({
  super.key,
  required this.value,
  this.label,
  this.variant = BsVariant.primary,
  this.striped = false,
  this.animated = false,
  this.color,
  this.textColor,
}) : assert(
        value >= 0.0 && value <= 100.0,
        'Value must be between 0.0 and 100.0',
      );