contains method

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

Implementation

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