Blob factory constructor
Blob(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); if (type == null && endings == null) { return _blink.BlinkBlob.instance.constructorCallback_1_(parts); } var bag = {}; if (type != null) bag['type'] = type; if (endings != null) bag['endings'] = endings; return _blink.BlinkBlob.instance .constructorCallback_2_(parts, convertDartToNative_Dictionary(bag)); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Blob/Blob.html