BlockHeader constructor
BlockHeader({
- BlockId? parentHeaderId,
- Int64? parentSlot,
- List<
int> ? txRoot, - List<
int> ? bloomFilter, - Int64? timestamp,
- Int64? height,
- Int64? slot,
- EligibilityCertificate? eligibilityCertificate,
- OperationalCertificate? operationalCertificate,
- List<
int> ? metadata, - StakingAddress? address,
- 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;
}