bool containsPosition(Offset position) { final Rect visibleRegion = Offset.zero & size; return visibleRegion.contains(globalToLocal(position)); }