getFlavors function
Implementation
List<String> getFlavors() {
final List<String> flavors = [];
for (FileSystemEntity item in Directory('.').listSync()) {
if (item is File) {
final String name = path.basename(item.path);
final RegExpMatch? match =
RegExp(flavorConfigFilePattern).firstMatch(name);
if (match != null) {
flavors.add(match.group(1)!);
}
}
}
return flavors;
}