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:
Greg Spencer
2021-06-14 14:16:57 -07:00
committed by GitHub
parent acd68cf47b
commit 88f3811055
56 changed files with 331 additions and 235 deletions

View File

@@ -273,7 +273,7 @@ Future<Uri> _getRemoteDebuggerUrl(Uri base) async {
if (jsonObject == null || jsonObject.isEmpty) {
return base;
}
return base.resolve(jsonObject.first['webSocketDebuggerUrl'] as String);
return base.resolve((jsonObject.first as Map<String, dynamic>)['webSocketDebuggerUrl'] as String);
}
/// Summarizes a Blink trace down to a few interesting values.