packageOf abstract method

Package? packageOf(
  1. Uri file
)

Provides the associated package for a specific file (or directory).

Returns a Package which contains the file's path, if any. That is, the Package.rootUri directory is a parent directory of the file's location.

Returns null if the file does not belong to any package.

Implementation

Package? packageOf(Uri file);