LinearShapePointer constructor
const
LinearShapePointer({
- Key? key,
- required double value,
- ValueChanged<
double> ? onChanged, - ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - bool enableAnimation = true,
- int animationDuration = 1000,
- LinearAnimationType animationType = LinearAnimationType.ease,
- VoidCallback? onAnimationCompleted,
- double? width,
- double? height,
- double offset = 0.0,
- LinearMarkerAlignment markerAlignment = LinearMarkerAlignment.center,
- LinearElementPosition position = LinearElementPosition.outside,
- LinearShapePointerType shapeType = LinearShapePointerType.invertedTriangle,
- LinearMarkerDragBehavior dragBehavior = LinearMarkerDragBehavior.free,
- Color? color,
- Color? borderColor,
- double borderWidth = 0.0,
- double elevation = 0,
- 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);