Remove set literal syntax (#28238)

This commit is contained in:
Jonah Williams 2019-02-20 19:55:10 -08:00 committed by GitHub
parent 0bc94f2644
commit 72b6ed35d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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".');