moveFilesExclSuffix method

void moveFilesExclSuffix(
  1. String suffix,
  2. List<String> files,
  3. String dependencySrc
)

Implementation

void moveFilesExclSuffix(
    String suffix, List<String> files, String dependencySrc) {
  List<String> nonJSFiles = [];
  for (String file in files) {
    if (file.endsWith(suffix)) {
      continue;
    }
    nonJSFiles.add(file);
  }
  _move(nonJSFiles, dependencySrc);
}