contains method
Implementation
@override
bool contains(Offset position) {
if (points.isNotEmpty) {
final Rect bounds = Rect.fromCenter(
center: points[0], width: tooltipPadding, height: tooltipPadding);
return bounds.contains(position);
}
return false;
}