contains method

  1. @override
bool contains(
  1. Offset position
)
override

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;
}