loadFmatMaterial function Materials
Future<PreprocessedMaterial>
loadFmatMaterial(
- String sourcePath, {
- String? package,
- String? bundleName,
- AssetBundle? bundle,
- FmatMaterialFactory? factory,
Implementation
Future<PreprocessedMaterial> loadFmatMaterial(
String sourcePath, {
String? package,
String? bundleName,
AssetBundle? bundle,
FmatMaterialFactory? factory,
}) async {
final registry = await _registryFor(bundle ?? rootBundle);
return registry.loadMaterial(
sourcePath,
package: package,
bundleName: bundleName,
factory: factory,
);
}