Validator constructor

Validator({
  1. String? address,
  2. Any? pubKey,
  3. Int64? votingPower,
  4. Int64? proposerPriority,
})

Implementation

factory Validator({
  $core.String? address,
  $2.Any? 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;
}