fromBlob method

  1. @override
Future<ThreeFile> fromBlob(
  1. Blob blob
)
override

blob - a blob of the file to be loaded

Implementation

@override
Future<ThreeFile> fromBlob(Blob blob) async{
  if(kIsWeb){
    //final hblob = uhtml.Blob([blob.data.buffer], blob.options["type"]);
    return ThreeFile('blob',blob.data.buffer);
  }
  return await fromBytes(blob.data,'blob',blob.options["type"]);
}