fromPath method
filePath
- path of the file to be loaded
Implementation
@override
Future<ThreeFile?> fromPath(String filePath) async{
try{
final File file = File(path+filePath);
final Uint8List data = await file.readAsBytes();
return await fromBytes(data,'path',filePath);
}catch(e){
console.error('FileLoader error from path: ${path.substring(0,30)}');
return null;
}
}