insideRect property

bool get insideRect

True if the tap landed inside the currently-displayed rect.

Implementation

bool get insideRect => currentRect.contains(globalPosition);