LinearMarkerPointer constructor

LinearMarkerPointer({
  1. required double value,
  2. ValueChanged<double>? onChanged,
  3. ValueChanged<double>? onChangeStart,
  4. ValueChanged<double>? onChangeEnd,
  5. bool enableAnimation = false,
  6. int animationDuration = 1000,
  7. LinearAnimationType animationType = LinearAnimationType.ease,
  8. double offset = 0.0,
  9. LinearMarkerAlignment markerAlignment = LinearMarkerAlignment.center,
  10. LinearElementPosition position = LinearElementPosition.cross,
  11. LinearMarkerDragBehavior dragBehavior = LinearMarkerDragBehavior.free,
  12. 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,
});