ValueBar constructor
const
ValueBar({
- Key? key,
- required double value,
- double offset = 0,
- ValueBarPosition position = ValueBarPosition.center,
- Color color = Colors.blue,
- double valueBarThickness = 4.0,
- LinearEdgeStyle edgeStyle = LinearEdgeStyle.bothCurve,
- double? borderRadius,
- int animationDuration = 1000,
- Curve animationType = Curves.ease,
- bool enableAnimation = true,
- 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);