Validator constructor
Validator(
{ - String? address,
- Any? pubKey,
- Int64? votingPower,
- 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;
}