Validator constructor

Validator({
  1. List<int>? address,
  2. PublicKey? pubKey,
  3. Int64? votingPower,
  4. Int64? proposerPriority,
})

Implementation

factory Validator({
  $core.List<$core.int>? address,
  $0.PublicKey? pubKey,
  $fixnum.Int64? votingPower,
  $fixnum.Int64? proposerPriority,
}) {
  final _result = create();
  if (address != null) {
    _result.address = address;
  }
  if (pubKey != null) {
    _result.pubKey = pubKey;
  }
  if (votingPower != null) {
    _result.votingPower = votingPower;
  }
  if (proposerPriority != null) {
    _result.proposerPriority = proposerPriority;
  }
  return _result;
}