BlockHeader constructor

BlockHeader({
  1. BlockId? parentHeaderId,
  2. Int64? parentSlot,
  3. List<int>? txRoot,
  4. List<int>? bloomFilter,
  5. Int64? timestamp,
  6. Int64? height,
  7. Int64? slot,
  8. EligibilityCertificate? eligibilityCertificate,
  9. OperationalCertificate? operationalCertificate,
  10. List<int>? metadata,
  11. StakingAddress? address,
  12. BlockId? headerId,
})

Implementation

factory BlockHeader({
  $18.BlockId? parentHeaderId,
  $fixnum.Int64? parentSlot,
  $core.List<$core.int>? txRoot,
  $core.List<$core.int>? bloomFilter,
  $fixnum.Int64? timestamp,
  $fixnum.Int64? height,
  $fixnum.Int64? slot,
  $19.EligibilityCertificate? eligibilityCertificate,
  $10.OperationalCertificate? operationalCertificate,
  $core.List<$core.int>? metadata,
  $9.StakingAddress? address,
  $18.BlockId? headerId,
}) {
  final _result = create();
  if (parentHeaderId != null) {
    _result.parentHeaderId = parentHeaderId;
  }
  if (parentSlot != null) {
    _result.parentSlot = parentSlot;
  }
  if (txRoot != null) {
    _result.txRoot = txRoot;
  }
  if (bloomFilter != null) {
    _result.bloomFilter = bloomFilter;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (height != null) {
    _result.height = height;
  }
  if (slot != null) {
    _result.slot = slot;
  }
  if (eligibilityCertificate != null) {
    _result.eligibilityCertificate = eligibilityCertificate;
  }
  if (operationalCertificate != null) {
    _result.operationalCertificate = operationalCertificate;
  }
  if (metadata != null) {
    _result.metadata = metadata;
  }
  if (address != null) {
    _result.address = address;
  }
  if (headerId != null) {
    _result.headerId = headerId;
  }
  return _result;
}