ValueBar constructor

const ValueBar({
  1. Key? key,
  2. required double value,
  3. double offset = 0,
  4. ValueBarPosition position = ValueBarPosition.center,
  5. Color color = Colors.blue,
  6. double valueBarThickness = 4.0,
  7. LinearEdgeStyle edgeStyle = LinearEdgeStyle.bothCurve,
  8. double? borderRadius,
  9. int animationDuration = 1000,
  10. Curve animationType = Curves.ease,
  11. bool enableAnimation = true,
  12. LinearGradient? linearGradient,
})

Implementation

const ValueBar({
  Key? key,
  required this.value,
  this.offset = 0,
  this.position = ValueBarPosition.center,
  this.color = Colors.blue,
  this.valueBarThickness = 4.0,
  this.edgeStyle = LinearEdgeStyle.bothCurve,
  this.borderRadius,
  this.animationDuration = 1000,
  this.animationType = Curves.ease,
  this.enableAnimation = true,
  this.linearGradient,
}) : super(key: key);