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