packageFor abstract method
Returns the package name that contains the specified URI.
This method determines which package a file belongs to by comparing the file's path against known package root directories.
@param uri The URI to find the package for @param relativeTo An optional base URI for resolving relative URIs @return The name of the package containing the URI @throws PackageNotFoundError if no matching package is found
Implementation
String packageFor(Uri uri, {Uri? relativeTo});