TransactionPlan constructor

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

Implementation

factory TransactionPlan({
  $core.Iterable<TransactionOutputPlan>? outputs,
  $core.Iterable<TransactionInput>? inputs,
  $fixnum.Int64? fee,
  $0.SigningError? error,
  $core.Iterable<TransactionAttributePlan>? attributes,
}) {
  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;
  if (attributes != null) result.attributes.addAll(attributes);
  return result;
}