onSingleTapUp method
Implementation
@override
void onSingleTapUp(TapUpDetails details) {
if (widget.controller.painter!.highLightPerTapEnabled) {
Highlight? h = widget.controller.painter?.getHighlightByTouchPoint(
details.localPosition.dx, details.localPosition.dy);
lastHighlighted = HighlightUtils.performHighlight(
widget.controller.painter!, h, lastHighlighted);
setStateIfNotDispose();
} else {
Highlight? high = widget.controller.painter?.getHighlightByTouchPoint(
details.localPosition.dx,
details.localPosition.dy,
);
widget.controller.painter?.selectedValue(high);
lastHighlighted = null;
}
if (widget.controller.touchEventListener != null) {
var point = _getTouchValue(
widget.controller.touchEventListener!.valueType(),
details.globalPosition.dx,
details.globalPosition.dy,
details.localPosition.dx,
details.localPosition.dy);
widget.controller.touchEventListener?.onSingleTapUp(point.x, point.y);
}
}