0f880e92008c8c2a496f771a9b79d1752a63e9cc
KeyEventDeviceType to KeyData (flutter/engine#47315)
## Description Before we deprecate the `RawKeyEvent` code, it needs to provide parity in functionality. One thing that is missing is the `eventSource` field from the `RawKeyEventDataAndroid` class, which provides the device type for the event. See https://developer.android.com/reference/android/view/InputDevice#SOURCE_KEYBOARD for an example. This PR implements that support, and sets the source to `KeyEventDeviceType.keyboard` for platforms that don't provide this information. The main thing it does is add the enum `KeyEventDeviceType`, and a new field `KeyData.deviceType`. ## Related Issues - https://github.com/flutter/flutter/issues/136419 ## Tests - Updated tests to also read/write/verify this property.
Description
Languages
Dart
75.4%
C++
16.4%
Objective-C++
2.7%
Java
2.7%
Objective-C
0.6%
Other
1.8%