SFProgressBar constructor

const SFProgressBar({
  1. Key? key,
  2. double? height = 30,
  3. double? value,
  4. Duration? duration,
  5. TextStyle? valueTextStyle,
  6. Color? backgroundColor,
  7. Color? valueBackgroundColor,
  8. bool animation = true,
  9. Duration? animationDuration,
  10. double borderRadius = 16,
  11. double textPadding = 16,
})

Implementation

const SFProgressBar({
  Key? key,
  this.height = 30,
  this.value,
  this.duration,
  this.valueTextStyle,
  this.backgroundColor,
  this.valueBackgroundColor,
  this.animation = true,
  this.animationDuration,
  this.borderRadius = 16,
  this.textPadding = 16,
})  : assert(value == null ? true : duration == null),
      assert(value != null ? (value >= 0.0 && value <= 100) : true),
      super(key: key);