Vote constructor

Vote({
  1. SignedMsgType? type,
  2. Int64? height,
  3. int? round,
  4. BlockID? blockId,
  5. Timestamp? timestamp,
  6. List<int>? validatorAddress,
  7. int? validatorIndex,
  8. List<int>? signature,
})

Implementation

factory Vote({
  SignedMsgType? type,
  $fixnum.Int64? height,
  $core.int? round,
  BlockID? blockId,
  $3.Timestamp? timestamp,
  $core.List<$core.int>? validatorAddress,
  $core.int? validatorIndex,
  $core.List<$core.int>? signature,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (height != null) {
    _result.height = height;
  }
  if (round != null) {
    _result.round = round;
  }
  if (blockId != null) {
    _result.blockId = blockId;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (validatorAddress != null) {
    _result.validatorAddress = validatorAddress;
  }
  if (validatorIndex != null) {
    _result.validatorIndex = validatorIndex;
  }
  if (signature != null) {
    _result.signature = signature;
  }
  return _result;
}