setAssetBuilder method
Replaces the AssetBuilder used to locate or load template content.
The asset builder maps a template name or path to an actual template source. By setting a custom asset builder, templates can be sourced from files, memory, network, or any external system. All subsequent renders will use the new builder to locate templates.
Implementation
@override
void setAssetBuilder(AssetBuilder assetBuilder) {
_assetBuilder = assetBuilder;
}