hitTestSelf method

  1. @protected
bool hitTestSelf ({@required double mainAxisPosition @required double crossAxisPosition })
@protected

Override this method if this render object can be hit even if its children were not hit.

Used by hitTest. If you override hitTest and do not call this function, then you don't need to implement this function.

For a discussion of the semantics of the arguments, see hitTest.

Implementation

@protected
bool hitTestSelf({ @required double mainAxisPosition, @required double crossAxisPosition }) => false;