BlockHeader constructor

BlockHeader({
  1. int? signals,
  2. CheckpointBeacon? beacon,
  3. BlockMerkleRoots? merkleRoots,
  4. BlockEligibilityClaim? proof,
  5. Bn256PublicKey? bn256PublicKey,
})

Implementation

factory BlockHeader({
  int? signals,
  CheckpointBeacon? beacon,
  BlockMerkleRoots? merkleRoots,
  BlockEligibilityClaim? proof,
  Bn256PublicKey? bn256PublicKey,
}) {
  final _result = create();
  if (signals != null) _result.signals = signals;
  if (beacon != null) _result.beacon = beacon;
  if (merkleRoots != null) _result.merkleRoots = merkleRoots;
  if (proof != null) _result.proof = proof;
  if (bn256PublicKey != null) _result.bn256PublicKey = bn256PublicKey;
  return _result;
}