copyWith method
Create a new instance of KeyCode with the given parameters.
Implementation
KeyCode copyWith({
KeyCodeKind? kind,
KeyCodeName? name,
String? char,
int? baseLayoutKey,
}) {
return KeyCode._(
kind: kind ?? this.kind,
name: name ?? this.name,
char: char ?? this.char,
baseLayoutKey: baseLayoutKey ?? this.baseLayoutKey,
);
}