SuperBlock constructor
SuperBlock({})
Implementation
factory SuperBlock({
int? signingCommitteeLength,
Hash? arsRoot,
Hash? dataRequestRoot,
int? index,
Hash? lastBlock,
Hash? lastBlockInPreviousSuperblock,
Hash? tallyRoot,
}) {
final _result = create();
if (signingCommitteeLength != null) {
_result.signingCommitteeLength = signingCommitteeLength;
}
if (arsRoot != null) {
_result.arsRoot = arsRoot;
}
if (dataRequestRoot != null) {
_result.dataRequestRoot = dataRequestRoot;
}
if (index != null) {
_result.index = index;
}
if (lastBlock != null) {
_result.lastBlock = lastBlock;
}
if (lastBlockInPreviousSuperblock != null) {
_result.lastBlockInPreviousSuperblock = lastBlockInPreviousSuperblock;
}
if (tallyRoot != null) {
_result.tallyRoot = tallyRoot;
}
return _result;
}