ProtoGossipBlockRange_Block constructor

ProtoGossipBlockRange_Block({
  1. ProtoBlockHeader? header,
  2. ProtoBlockCert? cert,
  3. ProtoIdentityStateDiff? diff,
})

Implementation

factory ProtoGossipBlockRange_Block({
  ProtoBlockHeader? header,
  ProtoBlockCert? cert,
  ProtoIdentityStateDiff? diff,
}) {
  final _result = create();
  if (header != null) {
    _result.header = header;
  }
  if (cert != null) {
    _result.cert = cert;
  }
  if (diff != null) {
    _result.diff = diff;
  }
  return _result;
}