setCode method Null safety

TransactionBuilder setCode(
  1. String 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;
}