BlockHeaderInfo constructor

BlockHeaderInfo({
  1. int? version,
  2. String? prevBlockHash,
  3. String? stateRoot,
  4. String? sortitionSeed,
  5. String? proposerAddress,
})

Implementation

factory BlockHeaderInfo({
  $core.int? version,
  $core.String? prevBlockHash,
  $core.String? stateRoot,
  $core.String? sortitionSeed,
  $core.String? proposerAddress,
}) {
  final _result = create();
  if (version != null) {
    _result.version = version;
  }
  if (prevBlockHash != null) {
    _result.prevBlockHash = prevBlockHash;
  }
  if (stateRoot != null) {
    _result.stateRoot = stateRoot;
  }
  if (sortitionSeed != null) {
    _result.sortitionSeed = sortitionSeed;
  }
  if (proposerAddress != null) {
    _result.proposerAddress = proposerAddress;
  }
  return _result;
}