TransactionPlan constructor

TransactionPlan({
  1. Iterable<CellDep>? cellDeps,
  2. Iterable<List<int>>? headerDeps,
  3. Iterable<Cell>? selectedCells,
  4. Iterable<CellOutput>? outputs,
  5. Iterable<List<int>>? outputsData,
  6. SigningError? error,
})

Implementation

factory TransactionPlan({
  $core.Iterable<CellDep>? cellDeps,
  $core.Iterable<$core.List<$core.int>>? headerDeps,
  $core.Iterable<Cell>? selectedCells,
  $core.Iterable<CellOutput>? outputs,
  $core.Iterable<$core.List<$core.int>>? outputsData,
  $0.SigningError? error,
}) {
  final _result = create();
  if (cellDeps != null) {
    _result.cellDeps.addAll(cellDeps);
  }
  if (headerDeps != null) {
    _result.headerDeps.addAll(headerDeps);
  }
  if (selectedCells != null) {
    _result.selectedCells.addAll(selectedCells);
  }
  if (outputs != null) {
    _result.outputs.addAll(outputs);
  }
  if (outputsData != null) {
    _result.outputsData.addAll(outputsData);
  }
  if (error != null) {
    _result.error = error;
  }
  return _result;
}