An example of a library depending on prebuilt assets which are downloaded in the build hook.
Run tests with dart --enable-experiment=native-assets test.
A typical layout of a package which downloads assets:
tool/build.dartprebuilts assets and is exercised from a GitHub workflow.- A GitHub workflow that builds assets.
hook/build.dartdownloads the prebuilt assets.lib/contains Dart code which uses the assets.