hitTestSelf method

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

Hits only inside the shape, never on an outside stroke or shadow.

Implementation

@override
bool hitTestSelf(Offset position) => !_paintsNothing && _currentPlan().contains(position);