onChangeAddress method
Implementation
TransactionOutput? onChangeAddress(ADAAddress onChangeAddress) {
if (_fee == null) {
throw const MessageException(
"please calculation the transaction fees befor using change address.");
}
final change = _changeOutput(onChangeAddress);
if (change != null) {
_outputs = [..._outputs, change];
}
return change;
}