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