putDataURL method

String? putDataURL(
  1. String id,
  2. DataURLBase64 dataURL
)

Put an asset id of value dataURL.

Implementation

String? putDataURL(String id, DataURLBase64 dataURL) {
  if (id.isEmpty) return null;
  var blob = dataURLToBlob(dataURL);
  return putBlob(id, blob);
}