AssetBuilder constructor
AssetBuilder([
- AssetLoaderInterface? assetLoader
Defines a contract for classes that build Asset instances from a given template identifier.
An AssetBuilder is responsible for transforming a template string or path into an actual Asset representation used by the system.
Usage Example
final builder = DefaultAssetBuilder();
final asset = builder.build('templates/main.html');
Design Notes
- Implementations should provide a deterministic
buildmethod returning an Asset instance. - Can be extended or replaced with custom asset resolution strategies.
Implementation
factory AssetBuilder([AssetLoaderInterface? assetLoader]) = DefaultAssetBuilder;