LinearBarPointer constructor
const
LinearBarPointer({
- Key? key,
- required double value,
- bool enableAnimation = true,
- int animationDuration = 1000,
- LinearAnimationType animationType = LinearAnimationType.ease,
- VoidCallback? onAnimationCompleted,
- double thickness = 5.0,
- double offset = 0,
- LinearEdgeStyle edgeStyle = LinearEdgeStyle.bothFlat,
- LinearElementPosition position = LinearElementPosition.cross,
- ShaderCallback? shaderCallback,
- Color? color,
- Color? borderColor,
- double borderWidth = 0,
- Widget? child,
Creates a new instance for LinearBarPointer.
Implementation
const LinearBarPointer(
{Key? key,
required this.value,
this.enableAnimation = true,
this.animationDuration = 1000,
this.animationType = LinearAnimationType.ease,
this.onAnimationCompleted,
this.thickness = 5.0,
double offset = 0,
this.edgeStyle = LinearEdgeStyle.bothFlat,
this.position = LinearElementPosition.cross,
this.shaderCallback,
this.color,
this.borderColor,
this.borderWidth = 0,
Widget? child})
: offset = offset > 0 ? offset : 0,
super(key: key, child: child);