LinearWidgetPointer constructor

const LinearWidgetPointer({
  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 offset = 0.0,
  11. LinearElementPosition position = LinearElementPosition.cross,
  12. LinearMarkerAlignment markerAlignment = LinearMarkerAlignment.center,
  13. LinearMarkerDragBehavior dragBehavior = LinearMarkerDragBehavior.free,
  14. required Widget child,
})

Creates a widget marker pointer.

Implementation

const LinearWidgetPointer(
    {Key? key,
    required this.value,
    this.onChanged,
    this.onChangeStart,
    this.onChangeEnd,
    this.enableAnimation = true,
    this.animationDuration = 1000,
    this.animationType = LinearAnimationType.ease,
    this.onAnimationCompleted,
    double offset = 0.0,
    this.position = LinearElementPosition.cross,
    this.markerAlignment = LinearMarkerAlignment.center,
    this.dragBehavior = LinearMarkerDragBehavior.free,
    required Widget child})
    : offset = offset > 0 ? offset : 0,
      super(key: key, child: child);