getResource method

  1. @override
Resource getResource(
  1. String path
)
override

Return the Resource that corresponds to the given path.

The path must be absolute and normalized.

Implementation

@override
Resource getResource(String path) {
  final file = fs.file(path);

  if (file.existsSync()) {
    return file.toAnalyzerFile();
  }

  final directory = fs.directory(path);

  return directory.toAnalyzerFolder(fs);
}