LinearMarkerPointer constructor
LinearMarkerPointer({
- required double value,
- ValueChanged<
double> ? onChanged, - ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - bool enableAnimation = false,
- int animationDuration = 1000,
- LinearAnimationType animationType = LinearAnimationType.ease,
- double offset = 0.0,
- LinearMarkerAlignment markerAlignment = LinearMarkerAlignment.center,
- LinearElementPosition position = LinearElementPosition.cross,
- LinearMarkerDragBehavior dragBehavior = LinearMarkerDragBehavior.free,
- VoidCallback? onAnimationCompleted,
Creates a pointer for linear axis with the default or required properties.
Implementation
LinearMarkerPointer(
{required this.value,
this.onChanged,
this.onChangeStart,
this.onChangeEnd,
this.enableAnimation = false,
this.animationDuration = 1000,
this.animationType = LinearAnimationType.ease,
this.offset = 0.0,
this.markerAlignment = LinearMarkerAlignment.center,
this.position = LinearElementPosition.cross,
this.dragBehavior = LinearMarkerDragBehavior.free,
this.onAnimationCompleted});