loadUSDZFileFromPath method

Future<bool> loadUSDZFileFromPath(
  1. String path
)

Loads a USDZ file from a local path.

path should be a valid path to a local USDZ file.

Returns a Future<bool> that completes with:

  • true if the file was loaded successfully
  • false if there was an error loading the file

Example:

final viewer = FlutterViewerUsdz();
final success = await viewer.loadUSDZFileFromPath('assets/model.usdz');

Implementation

Future<bool> loadUSDZFileFromPath(String path) {
  return FlutterViewerUsdzPlatform.instance.loadUSDZFileFromPath(path);
}