TransactionPlan constructor

TransactionPlan({
  1. Int64? amount,
  2. Int64? availableAmount,
  3. Int64? fee,
  4. Int64? change,
  5. Iterable<UnspentTransaction>? utxos,
  6. List<int>? branchId,
  7. SigningError? error,
  8. List<int>? outputOpReturn,
  9. List<int>? preblockhash,
  10. Int64? preblockheight,
  11. TransactionPlan? planningResultV2,
  12. OutputIndex? outputOpReturnIndex,
})

Implementation

factory TransactionPlan({
  $fixnum.Int64? amount,
  $fixnum.Int64? availableAmount,
  $fixnum.Int64? fee,
  $fixnum.Int64? change,
  $core.Iterable<UnspentTransaction>? utxos,
  $core.List<$core.int>? branchId,
  $0.SigningError? error,
  $core.List<$core.int>? outputOpReturn,
  $core.List<$core.int>? preblockhash,
  $fixnum.Int64? preblockheight,
  $5.TransactionPlan? planningResultV2,
  OutputIndex? outputOpReturnIndex,
}) {
  final $result = create();
  if (amount != null) {
    $result.amount = amount;
  }
  if (availableAmount != null) {
    $result.availableAmount = availableAmount;
  }
  if (fee != null) {
    $result.fee = fee;
  }
  if (change != null) {
    $result.change = change;
  }
  if (utxos != null) {
    $result.utxos.addAll(utxos);
  }
  if (branchId != null) {
    $result.branchId = branchId;
  }
  if (error != null) {
    $result.error = error;
  }
  if (outputOpReturn != null) {
    $result.outputOpReturn = outputOpReturn;
  }
  if (preblockhash != null) {
    $result.preblockhash = preblockhash;
  }
  if (preblockheight != null) {
    $result.preblockheight = preblockheight;
  }
  if (planningResultV2 != null) {
    $result.planningResultV2 = planningResultV2;
  }
  if (outputOpReturnIndex != null) {
    $result.outputOpReturnIndex = outputOpReturnIndex;
  }
  return $result;
}