isIncluded method

bool isIncluded(
  1. String name
)

Implementation

bool isIncluded(String name) {
  for (var pattern in excludes) {
    if (pattern.hasMatch(name)) {
      done.add(name);
      return false;
    }
  }
  return includes.isEmpty || includes.contains(name);
}