TransactionPlan constructor
TransactionPlan({
- Iterable<
TransactionOutputPlan> ? outputs, - Iterable<
TransactionInput> ? inputs, - Int64? fee,
- SigningError? error,
- 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;
}