VentLinearProgressBar constructor

const VentLinearProgressBar({
  1. Key? key,
  2. double? height = 8,
  3. double? width = double.infinity,
  4. required double progress,
  5. Duration animationDuration = const Duration(seconds: 1),
  6. bool withAnimation = true,
  7. Curve curve = Curves.linear,
  8. VentProgressBarDecoration? decoration,
  9. void onComplete()?,
})

Implementation

const VentLinearProgressBar({
  super.key,
  this.height = 8,
  this.width = double.infinity,
  required this.progress,
  this.animationDuration = const Duration(seconds: 1),
  this.withAnimation = true,
  this.curve = Curves.linear,
  this.decoration,
  this.onComplete,
})  : assert(
          progress >= 0 && progress <= 1, 'Progress must be between 0 and 1'),
      type = VentProgressBarType.DEFAULT,
      decimal = 0;