contains method
Implementation
@override
bool contains(Offset position) {
final double width = series.markerSettings.width;
final double height = series.markerSettings.height;
final int length = _outlierPoints.length;
for (int i = 0; i < length; i++) {
final Offset outlierPoint = _outlierPoints[i];
final Rect outlierRect =
Rect.fromCenter(center: outlierPoint, width: width, height: height);
if (outlierRect.contains(position)) {
return true;
}
}
return segmentRect != null && segmentRect!.contains(position);
}