contains method
Implementation
@override
bool contains(Offset position) {
for (int i = 0; i < points.length; i++) {
if (Rect.fromCenter(
center: points[i], width: tooltipPadding, height: tooltipPadding)
.contains(position)) {
return true;
}
}
return false;
}