contains method
Implementation
@override
bool contains(Offset position) {
if (points.isNotEmpty) {
final ChartMarker marker = series.markerAt(currentSegmentIndex);
return tooltipTouchBounds(points[0], marker.width, marker.height)
.contains(position);
}
return false;
}