dispatchOnClick method

void dispatchOnClick(
  1. PCanvasClickEvent event
)

Processes event and calls onClick.

Implementation

void dispatchOnClick(PCanvasClickEvent event) {
  pCanvas?.dispatchOnClick(event);
  onClick(event);
}