contains method

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

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;
}