contains method

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

Implementation

@override
bool contains(Offset position) {
  if (_outlierPoints.isNotEmpty) {
    final MarkerSettings marker = series.markerSettings;
    final int length = _outlierPoints.length;
    for (int i = 0; i < length; i++) {
      if (tooltipTouchBounds(_outlierPoints[i], marker.width, marker.height)
          .contains(position)) {
        return true;
      }
    }
  }

  return segmentRect != null && segmentRect!.contains(position);
}