dependencies property

List<String> get dependencies

Extracts the import statements of a file

Implementation

List<String> get dependencies {
  return library!.importedLibraries
      .map((lib) => lib.location.toString())
      .toList();
}