copyWith method

PCanvasClickEvent copyWith({
  1. String? type,
  2. num? x,
  3. num? y,
  4. PCanvasElement? targetElement,
  5. PCanvasClickEvent? parentEvent,
  6. PCanvas? pCanvas,
})

Copies this instance overwriting with the passed parameters.

Implementation

PCanvasClickEvent copyWith(
        {String? type,
        num? x,
        num? y,
        PCanvasElement? targetElement,
        PCanvasClickEvent? parentEvent,
        PCanvas? pCanvas}) =>
    PCanvasClickEvent(type ?? this.type, x ?? this.x, y ?? this.y,
        targetElement: targetElement ?? this.targetElement,
        parentEvent: parentEvent ?? this.parentEvent,
        pCanvas: pCanvas ?? this.pCanvas,
        nativeEvent: nativeEvent);