hello_world packageExample of a package that can be extended, and uses extension_discovery to find extensions.
The sayHello function in this package can only be used in a project workspace, where dependencies are resolved and you're running in JIT-mode.
The sayHello function uses findExtensions and, thus, cannot be called in a compiled Flutter application or AOT-compiled executable. For this to work, we'd need to augment this package with code-generation, such that the code-generation uses findExtensions and compiles a sayHello function into your application.
hello_world packageOther packages can extend this package by providing an extension/hello_world/config.json file the following form:
// extension/hello_world/config.json { "language": "<language>", "message": "<message>" }