copyWith method
KeyCode
copyWith({
- KeyCodeName? name,
- String? char,
- MediaKeyCode? media,
- ModifierKeyCode? modifiers,
- int? baseLayoutKey,
Create a new instance of KeyCode with the given parameters.
Implementation
KeyCode copyWith({
KeyCodeName? name,
String? char,
MediaKeyCode? media,
ModifierKeyCode? modifiers,
int? baseLayoutKey,
}) {
return KeyCode(
name: name ?? this.name,
char: char ?? this.char,
media: media ?? this.media,
modifiers: modifiers ?? this.modifiers,
baseLayoutKey: baseLayoutKey ?? this.baseLayoutKey,
);
}