AssetBuilder constructor

AssetBuilder([
  1. 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 build method returning an Asset instance.
  • Can be extended or replaced with custom asset resolution strategies.

Implementation

factory AssetBuilder([AssetLoaderInterface? assetLoader]) = DefaultAssetBuilder;