fromPath method

  1. @override
Future<DataTexture?> fromPath(
  1. String filePath
)
override

filePath - path of the file to be loaded

Implementation

@override
Future<DataTexture?> fromPath(String filePath) async{
  _init();
  ThreeFile? tf = await _loader.fromPath(filePath);
  return _parse(super.parse(_parseData(tf?.data)));
}