removeUnusedDir method

void removeUnusedDir(
  1. String pathApps,
  2. String appsName
)

Implementation

void removeUnusedDir(String pathApps, String appsName) {
  for (var element in [
    join(pathApps, 'android'),
    join(pathApps, 'ios'),
    join(pathApps, 'web'),
    join(pathApps, 'macos'),
    join(pathApps, 'linux'),
    join(pathApps, 'windows'),
  ]) {
    if (exists(element)) {
      deleteDir(element);
    }
  }
}