LinearBarPointer constructor

const LinearBarPointer({
  1. Key? key,
  2. required double value,
  3. bool enableAnimation = true,
  4. int animationDuration = 1000,
  5. LinearAnimationType animationType = LinearAnimationType.ease,
  6. VoidCallback? onAnimationCompleted,
  7. double thickness = 5.0,
  8. double offset = 0,
  9. LinearEdgeStyle edgeStyle = LinearEdgeStyle.bothFlat,
  10. LinearElementPosition position = LinearElementPosition.cross,
  11. ShaderCallback? shaderCallback,
  12. Color? color,
  13. Color? borderColor,
  14. double borderWidth = 0,
  15. 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);