Ignore analyzer implict dynamic checks for js_util generic return type (#92271)
This commit is contained in:
parent
2d8b8e12aa
commit
ffbf69cccc
@ -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() {
|
|||||||
|
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user