loadUSDZFileFromPath method

  1. @override
Future<bool> loadUSDZFileFromPath(
  1. String path
)
override

Implementation

@override
Future<bool> loadUSDZFileFromPath(String path) async {
  try {
    final result = await methodChannel.invokeMethod<bool>('loadUSDZFile', {
      'path': path,
      'isUrl': false,
    });
    return result ?? false;
  } on PlatformException catch (e) {
    print('Error loading USDZ file from path: ${e.message}');
    return false;
  }
}