getPackageRoot method

Future<String?> getPackageRoot()

Gets the package root path.

Returns the resolved package root directory path, or null if it cannot be determined.

Implementation

Future<String?> getPackageRoot() async {
  return await _findPackageRoot();
}