@override bool isInArea(Offset globalOffset) { if (edgeFun != null) { return edgeFun!.call(globalOffset); } return rect.contains(globalOffset); }