putBlob method

String? putBlob(
  1. String id,
  2. Blob blob
)

Put an asset id of value blob.

Implementation

String? putBlob(String id, Blob blob) {
  if (id.isEmpty) return null;
  var objURL = Url.createObjectUrlFromBlob(blob);
  _assets[id] = _AssetObjectURL(objURL, MimeType.parse(blob.type));
  return objURL;
}