preventDefault method

bool preventDefault([
  1. PCanvas? pCanvas
])

Prevents PCanvasEvent.nativeEvent default behavior if pCanvas parameter or field is provided.

Implementation

bool preventDefault([PCanvas? pCanvas]) {
  pCanvas ??= this.pCanvas;
  return pCanvas?.preventEventDefault(this) ?? false;
}