LinearWidgetPointer constructor
const
LinearWidgetPointer({
- 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 offset = 0.0,
- LinearElementPosition position = LinearElementPosition.cross,
- LinearMarkerAlignment markerAlignment = LinearMarkerAlignment.center,
- LinearMarkerDragBehavior dragBehavior = LinearMarkerDragBehavior.free,
- 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);