loadAssetModelWithProgress method

  1. @override
Stream<int> loadAssetModelWithProgress({
  1. required String fullPath,
})
override

Implementation

@override
Stream<int> loadAssetModelWithProgress({required String fullPath}) {
  if (kReleaseMode) {
    throw UnsupportedError(
        "Method loadAssetModelWithProgress should not be used in the release build");
  }
  return _loadModelWithProgress(
    loadFunction: () => _largeFileHandler.copyAssetToLocalStorageWithProgress(
      assetName: fullPath,
      targetPath: _modelPath,
    ),
  );
}