loadFmatMaterial function Materials

Future<PreprocessedMaterial> loadFmatMaterial(
  1. String sourcePath, {
  2. String? package,
  3. String? bundleName,
  4. AssetBundle? bundle,
  5. 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,
  );
}