contains method

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

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