translate method

PCanvasClickEvent translate(
  1. num translateX,
  2. num translateY, {
  3. PCanvasElement? targetElement,
  4. PCanvas? pCanvas,
})

Translates this event coordinates.

Implementation

PCanvasClickEvent translate(num translateX, num translateY,
        {PCanvasElement? targetElement, PCanvas? pCanvas}) =>
    PCanvasClickEvent(type, x + translateX, y + translateY,
        targetElement: targetElement,
        parentEvent: this,
        pCanvas: pCanvas ?? this.pCanvas,
        nativeEvent: nativeEvent);