SuperBlock constructor

SuperBlock({
  1. int? signingCommitteeLength,
  2. Hash? arsRoot,
  3. Hash? dataRequestRoot,
  4. int? index,
  5. Hash? lastBlock,
  6. Hash? lastBlockInPreviousSuperblock,
  7. Hash? tallyRoot,
})

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;
}