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