RequestBeginBlock constructor

RequestBeginBlock({
  1. List<int>? hash,
  2. Header? header,
  3. LastCommitInfo? lastCommitInfo,
  4. Iterable<Evidence>? byzantineValidators,
})

Implementation

factory RequestBeginBlock({
  $core.List<$core.int>? hash,
  $2.Header? header,
  LastCommitInfo? lastCommitInfo,
  $core.Iterable<Evidence>? byzantineValidators,
}) {
  final _result = create();
  if (hash != null) {
    _result.hash = hash;
  }
  if (header != null) {
    _result.header = header;
  }
  if (lastCommitInfo != null) {
    _result.lastCommitInfo = lastCommitInfo;
  }
  if (byzantineValidators != null) {
    _result.byzantineValidators.addAll(byzantineValidators);
  }
  return _result;
}