ProtoBlockCert constructor

ProtoBlockCert({
  1. Int64? round,
  2. int? step,
  3. List<int>? votedHash,
  4. Iterable<ProtoBlockCert_Signature>? signatures,
})

Implementation

factory ProtoBlockCert({
  $fixnum.Int64? round,
  $core.int? step,
  $core.List<$core.int>? votedHash,
  $core.Iterable<ProtoBlockCert_Signature>? signatures,
}) {
  final _result = create();
  if (round != null) {
    _result.round = round;
  }
  if (step != null) {
    _result.step = step;
  }
  if (votedHash != null) {
    _result.votedHash = votedHash;
  }
  if (signatures != null) {
    _result.signatures.addAll(signatures);
  }
  return _result;
}