isSystemPath function

bool isSystemPath(
  1. String path
)

Check if a path is a system path.

Implementation

bool isSystemPath(String path) {
  final normalized = path.endsWith('/')
      ? path.substring(0, path.length - 1)
      : path;
  return systemPaths.contains(normalized);
}