Unverified Commit ffbf69cc authored by Riley Porter's avatar Riley Porter Committed by GitHub

Ignore analyzer implict dynamic checks for js_util generic return type (#92271)

parent 2d8b8e12
...@@ -75,6 +75,7 @@ void _setTestMode(_TestMode? mode) { ...@@ -75,6 +75,7 @@ void _setTestMode(_TestMode? mode) {
// Keep as null. // Keep as null.
break; break;
} }
// ignore: implicit_dynamic_function
js_util.callMethod( js_util.callMethod(
html.window, html.window,
'_flutter_internal_update_experiment', '_flutter_internal_update_experiment',
......
...@@ -237,12 +237,14 @@ void main() { ...@@ -237,12 +237,14 @@ void main() {
KeyboardEvent dispatchKeyboardEvent( KeyboardEvent dispatchKeyboardEvent(
EventTarget target, String type, Map<String, dynamic> args) { EventTarget target, String type, Map<String, dynamic> args) {
// ignore: implicit_dynamic_function
final Object jsKeyboardEvent = js_util.getProperty(window, 'KeyboardEvent') as Object; final Object jsKeyboardEvent = js_util.getProperty(window, 'KeyboardEvent') as Object;
final List<dynamic> eventArgs = <dynamic>[ final List<dynamic> eventArgs = <dynamic>[
type, type,
args, args,
]; ];
// ignore: implicit_dynamic_function
final KeyboardEvent event = js_util.callConstructor( final KeyboardEvent event = js_util.callConstructor(
jsKeyboardEvent, js_util.jsify(eventArgs) as List<dynamic>) jsKeyboardEvent, js_util.jsify(eventArgs) as List<dynamic>)
as KeyboardEvent; as KeyboardEvent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment