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:
@@ -31,7 +31,7 @@ Future<void> main() async {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
for (final String key in withSemantics.benchmarkScoreKeys) {
|
||||
final String deltaKey = 'delta_$key';
|
||||
data[deltaKey] = withSemantics.data[key] - withoutSemantics.data[key];
|
||||
data[deltaKey] = (withSemantics.data[key] as num) - (withoutSemantics.data[key] as num);
|
||||
data['semantics_$key'] = withSemantics.data[key];
|
||||
data[key] = withoutSemantics.data[key];
|
||||
benchmarkScoreKeys.add(deltaKey);
|
||||
|
||||
Reference in New Issue
Block a user