Remove set literal syntax (#28238)
This commit is contained in:
@@ -391,9 +391,9 @@ void _validateFonts(YamlList fonts, List<String> errors) {
|
|||||||
if (fonts == null) {
|
if (fonts == null) {
|
||||||
return;
|
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,
|
100, 200, 300, 400, 500, 600, 700, 800, 900,
|
||||||
};
|
]);
|
||||||
for (final YamlMap fontMap in fonts) {
|
for (final YamlMap fontMap in fonts) {
|
||||||
for (dynamic key in fontMap.keys.where((dynamic key) => key != 'family' && key != 'fonts')) {
|
for (dynamic key in fontMap.keys.where((dynamic key) => key != 'family' && key != 'fonts')) {
|
||||||
errors.add('Unexpected child "$key" found under "fonts".');
|
errors.add('Unexpected child "$key" found under "fonts".');
|
||||||
|
|||||||
Reference in New Issue
Block a user