Source
factory Blob(List blobParts, [String type, String endings]) {
// TODO: any coercions on the elements of blobParts, e.g. coerce a typed
// array to ArrayBuffer if it is a total view.
var parts = convertDartToNative_List(blobParts.map(unwrap_jso).toList());
if (type == null && endings == null) {
return wrap_jso(_blink.BlinkBlob.instance.constructorCallback_1_(parts));
}
var bag = {};
if (type != null) bag['type'] = type;
if (endings != null) bag['endings'] = endings;
return wrap_jso(_blink.BlinkBlob.instance.constructorCallback_2_(parts,
convertDartToNative_Dictionary(bag)));
}