• Greg Spencer's avatar
    Standardize the nullability of arguments to raw key data constructors. (#63523) · 041a3eaa
    Greg Spencer authored
    This standardizes the handling of nullability for the LogicalKeyboardKey.keyLabel and RawKeyEventData.keyLabel accessors so that they are non-nullable, but can be empty.
    
    Before this change, the keyLabel could be either null or an empty string to indicate that there wasn't a label, which makes it harder to test for, since both need to be checked for. Since an empty string is sufficient, there is no need for it to be nullable.
    
    Also, in raw_keyboard.dart, the web and Windows implementations wouldn't accept null values for parameters in the Map coming from the message, but tests were supplying null for some of them. This makes web and Windows creation of events match the other platforms, and makes the migration of tests to non-nullability easier.
    041a3eaa
Name
Last commit
Last update
..
key_data.json Loading commit data...
key_name_to_android_name.json Loading commit data...
key_name_to_glfw_name.json Loading commit data...
key_name_to_gtk_name.json Loading commit data...
key_name_to_windows_name.json Loading commit data...
keyboard_key.tmpl Loading commit data...
keyboard_map_android_cc.tmpl Loading commit data...
keyboard_map_darwin_cc.tmpl Loading commit data...
keyboard_map_fuchsia_cc.tmpl Loading commit data...
keyboard_map_glfw_cc.tmpl Loading commit data...
keyboard_map_linux_cc.tmpl Loading commit data...
keyboard_map_web.tmpl Loading commit data...
keyboard_map_windows_cc.tmpl Loading commit data...
keyboard_maps.tmpl Loading commit data...
printable.json Loading commit data...
supplemental_hid_codes.inc Loading commit data...
synonyms.json Loading commit data...