setContent method
Add a content to the transaction @param {String | Uint8List} content Hosted content
Implementation
Transaction setContent(content) {
if (!(content is Uint8List) && !(content is String)) {
throw "'content' must be a string or Uint8List";
}
if (content is Uint8List) {
content = utf8.decode(content);
}
this.data!.content = content;
return this;
}