GetBlockWithTxsResponse constructor

GetBlockWithTxsResponse({
  1. Iterable<Tx>? txs,
  2. BlockID? blockId,
  3. Block? block,
  4. PageResponse? pagination,
})

Implementation

factory GetBlockWithTxsResponse({
  $core.Iterable<$7.Tx>? txs,
  $9.BlockID? blockId,
  $10.Block? block,
  $6.PageResponse? pagination,
}) {
  final _result = create();
  if (txs != null) {
    _result.txs.addAll(txs);
  }
  if (blockId != null) {
    _result.blockId = blockId;
  }
  if (block != null) {
    _result.block = block;
  }
  if (pagination != null) {
    _result.pagination = pagination;
  }
  return _result;
}