setCode method Null safety
- String code
Add smart contract code to the transaction @param {String} code Smart contract code
Implementation
TransactionBuilder setCode(String code) {
if (!(code is String)) {
throw "'code' must be a string";
}
data!.code = Uint8List.fromList(utf8.encode(code));
return this;
}