Turn on avoid_dynamic_calls lint, except packages/flutter tests, make appropriate changes. (#84476)
This adds avoid_dynamic_calls to the list of lints, and fixes all instances where it was violated. Importantly, this lint is NOT turned on for flutter/packages/test, because those changes are happening in another PR: #84478
This commit is contained in:
@@ -62,7 +62,7 @@ class Registrar extends BinaryMessenger {
|
||||
/// compiling for the web.
|
||||
void registerMessageHandler() {
|
||||
// The `ui.webOnlySetPluginHandler` function below is only defined in the Web dart:ui.
|
||||
// ignore: undefined_function
|
||||
// ignore: undefined_function, avoid_dynamic_calls
|
||||
ui.webOnlySetPluginHandler(handleFrameworkMessage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user