ProtoBlockHeader constructor

ProtoBlockHeader({
  1. ProtoBlockHeader_Proposed? proposedHeader,
  2. ProtoBlockHeader_Empty? emptyHeader,
})

Implementation

factory ProtoBlockHeader({
  ProtoBlockHeader_Proposed? proposedHeader,
  ProtoBlockHeader_Empty? emptyHeader,
}) {
  final _result = create();
  if (proposedHeader != null) {
    _result.proposedHeader = proposedHeader;
  }
  if (emptyHeader != null) {
    _result.emptyHeader = emptyHeader;
  }
  return _result;
}