TransactionPlan constructor

TransactionPlan({
  1. Iterable<TransactionOutputPlan>? outputs,
  2. Iterable<TransactionInput>? inputs,
  3. Int64? fee,
  4. SigningError? error,
})

Implementation

factory TransactionPlan({
  $core.Iterable<TransactionOutputPlan>? outputs,
  $core.Iterable<TransactionInput>? inputs,
  $fixnum.Int64? fee,
  $0.SigningError? error,
}) {
  final _result = create();
  if (outputs != null) {
    _result.outputs.addAll(outputs);
  }
  if (inputs != null) {
    _result.inputs.addAll(inputs);
  }
  if (fee != null) {
    _result.fee = fee;
  }
  if (error != null) {
    _result.error = error;
  }
  return _result;
}