TransactionPlan constructor
TransactionPlan({
- Int64? availableAmount,
- Int64? amount,
- Int64? fee,
- Int64? change,
- Iterable<
TokenAmount> ? availableTokens, - Iterable<
TokenAmount> ? outputTokens, - Iterable<
TokenAmount> ? changeTokens, - Iterable<
TxInput> ? utxos, - SigningError? error,
- Int64? deposit,
- Int64? undeposit,
Implementation
factory TransactionPlan({
$fixnum.Int64? availableAmount,
$fixnum.Int64? amount,
$fixnum.Int64? fee,
$fixnum.Int64? change,
$core.Iterable<TokenAmount>? availableTokens,
$core.Iterable<TokenAmount>? outputTokens,
$core.Iterable<TokenAmount>? changeTokens,
$core.Iterable<TxInput>? utxos,
$0.SigningError? error,
$fixnum.Int64? deposit,
$fixnum.Int64? undeposit,
}) {
final _result = create();
if (availableAmount != null) {
_result.availableAmount = availableAmount;
}
if (amount != null) {
_result.amount = amount;
}
if (fee != null) {
_result.fee = fee;
}
if (change != null) {
_result.change = change;
}
if (availableTokens != null) {
_result.availableTokens.addAll(availableTokens);
}
if (outputTokens != null) {
_result.outputTokens.addAll(outputTokens);
}
if (changeTokens != null) {
_result.changeTokens.addAll(changeTokens);
}
if (utxos != null) {
_result.utxos.addAll(utxos);
}
if (error != null) {
_result.error = error;
}
if (deposit != null) {
_result.deposit = deposit;
}
if (undeposit != null) {
_result.undeposit = undeposit;
}
return _result;
}