putContent method

String? putContent(
  1. String id,
  2. String content,
  3. MimeType mimeType
)

Put an asset id of value content and mimeType.

Implementation

String? putContent(String id, String content, MimeType mimeType) {
  if (isEmptyString(id)) return null;
  var blob = Blob([content], mimeType.toString());
  return putBlob(id, blob);
}