ProtoGossipBlockRange constructor

ProtoGossipBlockRange({
  1. int? batchId,
  2. Iterable<ProtoGossipBlockRange_Block>? blocks,
})

Implementation

factory ProtoGossipBlockRange({
  $core.int? batchId,
  $core.Iterable<ProtoGossipBlockRange_Block>? blocks,
}) {
  final _result = create();
  if (batchId != null) {
    _result.batchId = batchId;
  }
  if (blocks != null) {
    _result.blocks.addAll(blocks);
  }
  return _result;
}