contains method

bool contains(
  1. Offset position
)

Implementation

bool contains(Offset position) {
  return getHitTestRect(Offset.zero).contains(position);
}