isExcluded method

bool isExcluded(
  1. String path
)

Implementation

bool isExcluded(String path) {
  if (path.endsWith('.g.dart')) {
    return true;
  }
  final relative = root.relativeIfContains(path);
  return excludeGlobs.any((glob) => glob.matches(relative ?? path));
}