copyWith method
Copies this instance overwriting with the passed parameters.
Implementation
PCanvasKeyEvent copyWith(
{String? type,
int? charCode,
String? code,
String? key,
bool? ctrlKey,
bool? altKey,
bool? shiftKey,
bool? metaKey,
PCanvasElement? targetElement,
PCanvasKeyEvent? parentEvent,
PCanvas? pCanvas}) =>
PCanvasKeyEvent(
type ?? this.type,
charCode ?? this.charCode,
code ?? this.code,
key ?? this.key,
ctrlKey ?? this.ctrlKey,
altKey ?? this.altKey,
shiftKey ?? this.shiftKey,
metaKey ?? this.metaKey,
targetElement: targetElement ?? this.targetElement,
parentEvent: parentEvent ?? this.parentEvent,
pCanvas: pCanvas ?? this.pCanvas,
nativeEvent: nativeEvent);