extension_discovery library

Find extensions with findExtensions.

Classes

Extension
Information about an extension for target package.

Functions

findExtensions(String targetPackage, {bool useCache = true, Uri? packageConfig}) Future<List<Extension>>
Find extensions for targetPackage provided by packages in .dart_tool/package_config.json.
findPackageConfig(Uri packageDir) Uri?
Searches in packageDir and all directories above for a .dart_tool/package_config.json file. Returns the Uri of that file if found.

Exceptions / Errors

PackageConfigException
Thrown, if the .dart_tool/package_config.json cannot be found or parsing it fails.