hitTest method

bool hitTest(
  1. num localX,
  2. num localY
)

Implementation

bool hitTest(num localX, num localY) {
  if (bounds.contains(localX, localY)) {
    final commands = _getCommands(true);
    final context = _GraphicsContextHitTest(localX, localY);
    _updateContext(context, commands);
    return context.hit;
  } else {
    return false;
  }
}