BlockData constructor

BlockData({
  1. BlockHeader? header,
  2. BlockBody? body,
  3. Iterable<IoTransaction>? transactions,
})

Implementation

factory BlockData({
  $21.BlockHeader? header,
  $23.BlockBody? body,
  $core.Iterable<$20.IoTransaction>? transactions,
}) {
  final _result = create();
  if (header != null) {
    _result.header = header;
  }
  if (body != null) {
    _result.body = body;
  }
  if (transactions != null) {
    _result.transactions.addAll(transactions);
  }
  return _result;
}