assets property

Map<String, String> assets
final

The module's own asset paths, each mapped to the path that finds it once the module is mounted.

Flutter serves another package's asset under packages/<name>/, so a module standing alone and the same module mounted ask for the same file by different names. Module code asks by its own name and gets the right one, which is what keeps the mount point out of the code.

Implementation

final Map<String, String> assets;