detectPlatforms static method

List<TargetPlatform> detectPlatforms(
  1. String projectPath
)

The platforms that have a folder in the project at projectPath, in BPConfig.platformOrder

Implementation

static List<TargetPlatform> detectPlatforms(String projectPath) {
  return [
    for (TargetPlatform platform in BPConfig.platformOrder)
      if (Directory(p.join(projectPath, platform.name)).existsSync()) platform,
  ];
}