copyWith method
PCanvasClickEvent
copyWith({
- String? type,
- num? x,
- num? y,
- PCanvasElement? targetElement,
- PCanvasClickEvent? parentEvent,
- 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);