putData method

String? putData(
  1. String id,
  2. List<int> data,
  3. MimeType mimeType
)

Put an asset id of value data.

Implementation

String? putData(String id, List<int> data, MimeType mimeType) {
  if (id.isEmpty) return null;
  var blob = Blob([data], mimeType.toString());
  return putBlob(id, blob);
}