LinearProgressIndicator constructor

const LinearProgressIndicator(
  1. double fraction, {
  2. Style style = Style.empty,
  3. bool showPercentage = true,
  4. bool smooth = false,
  5. ProgressDirection direction = ProgressDirection.leftToRight,
  6. ProgressBarType barType = ProgressBarType.blocks,
  7. CrossAxisFill crossAxisFill = CrossAxisFill.span,
  8. ProgressColors colorBuilder(
    1. double fraction,
    2. double fill
    )?,
  9. @Deprecated('Use colorBuilder instead') Color? startColor,
  10. @Deprecated('Use colorBuilder instead') Color? endColor,
  11. EasingFunction easing = Easing.linear,
})

Implementation

const LinearProgressIndicator(
  this.fraction, {
  this.style = Style.empty,
  this.showPercentage = true,
  this.smooth = false,
  this.direction = ProgressDirection.leftToRight,
  this.barType = ProgressBarType.blocks,
  this.crossAxisFill = CrossAxisFill.span,
  this.colorBuilder,
  @Deprecated('Use colorBuilder instead') this.startColor,
  @Deprecated('Use colorBuilder instead') this.endColor,
  this.easing = Easing.linear,
});