mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove set literal syntax (#28238)
This commit is contained in:
parent
0bc94f2644
commit
72b6ed35d0
@ -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".');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user