SliderListenerCallback<D> typedef

SliderListenerCallback<D> = void Function(Point<int> point, D? domain, String roleId, SliderListenerDragState dragState)

Callback function for Slider drag events.

point is the current position of the slider line. point.x is the domain position, and point.y is the position of the center of the line on the measure axis.

domain is the domain value at the slider position.

dragState indicates the current state of a drag event.

Implementation

typedef SliderListenerCallback<D> = void Function(
  Point<int> point,
  D? domain,
  String roleId,
  SliderListenerDragState dragState,
);