LastCommitInfo constructor

LastCommitInfo({
  1. int? round,
  2. Iterable<VoteInfo>? votes,
})

Implementation

factory LastCommitInfo({
  $core.int? round,
  $core.Iterable<VoteInfo>? votes,
}) {
  final _result = create();
  if (round != null) {
    _result.round = round;
  }
  if (votes != null) {
    _result.votes.addAll(votes);
  }
  return _result;
}