dart / 2 / dart-html / canvaselement / toblob.html

toBlob method

Future<Blob> toBlob(
  1. [String? type,
  2. Object? arguments]
)

Implementation

Future<Blob> toBlob([String? type, Object? arguments]) {
  var completer = new Completer<Blob>();
  _toBlob((value) {
    completer.complete(value);
  }, type, arguments);
  return completer.future;
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/CanvasElement/toBlob.html