File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ void main(List<String> arguments) {
1919 .map ((e) => e.group (1 ))
2020 .whereNotNull ()
2121 .toSet ()
22- .intersection (config.classesMap.values.flattened. toSet () )
22+ .intersection (config.classes )
2323 .whereNot ((e) => sourceString.contains ('import { $e }' ))
2424 .toList ();
2525
Original file line number Diff line number Diff line change 1+ import 'package:collection/collection.dart' ;
12import 'package:yaml/yaml.dart' ;
23
34class Config {
45 final String fileUrlPrefix;
56 final Map <String , List <String >> classesMap;
67
8+ Set <String > get classes => classesMap.values.flattened.toSet ();
9+
710 Config ({required this .fileUrlPrefix, required this .classesMap});
811
912 factory Config .fromYaml (String yamlString) {
You can’t perform that action at this time.
0 commit comments