LinearShapePointer constructor

const LinearShapePointer(
  1. {Key? key,
  2. required double value,
  3. ValueChanged<double>? onChanged,
  4. ValueChanged<double>? onChangeStart,
  5. ValueChanged<double>? onChangeEnd,
  6. bool enableAnimation = true,
  7. int animationDuration = 1000,
  8. LinearAnimationType animationType = LinearAnimationType.ease,
  9. VoidCallback? onAnimationCompleted,
  10. double? width,
  11. double? height,
  12. double offset = 0.0,
  13. LinearMarkerAlignment markerAlignment = LinearMarkerAlignment.center,
  14. LinearElementPosition position = LinearElementPosition.outside,
  15. LinearShapePointerType shapeType = LinearShapePointerType.invertedTriangle,
  16. LinearMarkerDragBehavior dragBehavior = LinearMarkerDragBehavior.free,
  17. Color? color,
  18. Color? borderColor,
  19. double borderWidth = 0.0,
  20. double elevation = 0,
  21. Color elevationColor = Colors.black}
)

Creates a shape marker pointer for linear axis.

Implementation

const LinearShapePointer(
    {Key? key,
    required this.value,
    this.onChanged,
    this.onChangeStart,
    this.onChangeEnd,
    this.enableAnimation = true,
    this.animationDuration = 1000,
    this.animationType = LinearAnimationType.ease,
    this.onAnimationCompleted,
    this.width,
    this.height,
    double offset = 0.0,
    this.markerAlignment = LinearMarkerAlignment.center,
    this.position = LinearElementPosition.outside,
    this.shapeType = LinearShapePointerType.invertedTriangle,
    this.dragBehavior = LinearMarkerDragBehavior.free,
    this.color,
    this.borderColor,
    this.borderWidth = 0.0,
    this.elevation = 0,
    this.elevationColor = Colors.black})
    : offset = offset > 0 ? offset : 0,
      super(key: key);