setCode method Null safety
- String code
Implementation
TransactionBuilder setCode(String code) {
if (!(code is String)) {
throw "'code' must be a string";
}
this.data!.code = Uint8List.fromList(utf8.encode(code));
return this;
}
TransactionBuilder setCode(String code) {
if (!(code is String)) {
throw "'code' must be a string";
}
this.data!.code = Uint8List.fromList(utf8.encode(code));
return this;
}