Unverified Commit 72b6ed35 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Remove set literal syntax (#28238)

parent 0bc94f26
......@@ -391,9 +391,9 @@ void _validateFonts(YamlList fonts, List<String> errors) {
if (fonts == null) {
return;
}
const Set<int> fontWeights = const <int>{
final Set<int> fontWeights = Set<int>.from(const <int>[
100, 200, 300, 400, 500, 600, 700, 800, 900,
};
]);
for (final YamlMap fontMap in fonts) {
for (dynamic key in fontMap.keys.where((dynamic key) => key != 'family' && key != 'fonts')) {
errors.add('Unexpected child "$key" found under "fonts".');
......
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