TransactionPlan constructor

TransactionPlan({
  1. Int64? availableAmount,
  2. Int64? amount,
  3. Int64? fee,
  4. Int64? change,
  5. Iterable<TokenAmount>? availableTokens,
  6. Iterable<TokenAmount>? outputTokens,
  7. Iterable<TokenAmount>? changeTokens,
  8. Iterable<TxInput>? utxos,
  9. SigningError? error,
})

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,
}) {
  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;
  }
  return _result;
}