BlockData constructor
BlockData({
- BlockHeader? header,
- BlockBody? body,
- 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;
}