TransactionPlan constructor

TransactionPlan({
  1. SigningError? error,
  2. String? errorMessage,
  3. Iterable<Input>? inputs,
  4. Iterable<Output>? outputs,
  5. Int64? availableAmount,
  6. Int64? sendAmount,
  7. Int64? vsizeEstimate,
  8. Int64? feeEstimate,
  9. Int64? change,
})

Implementation

factory TransactionPlan({
  $0.SigningError? error,
  $core.String? errorMessage,
  $core.Iterable<Input>? inputs,
  $core.Iterable<Output>? outputs,
  $fixnum.Int64? availableAmount,
  $fixnum.Int64? sendAmount,
  $fixnum.Int64? vsizeEstimate,
  $fixnum.Int64? feeEstimate,
  $fixnum.Int64? change,
}) {
  final $result = create();
  if (error != null) {
    $result.error = error;
  }
  if (errorMessage != null) {
    $result.errorMessage = errorMessage;
  }
  if (inputs != null) {
    $result.inputs.addAll(inputs);
  }
  if (outputs != null) {
    $result.outputs.addAll(outputs);
  }
  if (availableAmount != null) {
    $result.availableAmount = availableAmount;
  }
  if (sendAmount != null) {
    $result.sendAmount = sendAmount;
  }
  if (vsizeEstimate != null) {
    $result.vsizeEstimate = vsizeEstimate;
  }
  if (feeEstimate != null) {
    $result.feeEstimate = feeEstimate;
  }
  if (change != null) {
    $result.change = change;
  }
  return $result;
}