WeightedVoteOption constructor

WeightedVoteOption({
  1. VoteOption? option,
  2. String? weight,
})

Implementation

factory WeightedVoteOption({
  VoteOption? option,
  $core.String? weight,
}) {
  final _result = create();
  if (option != null) {
    _result.option = option;
  }
  if (weight != null) {
    _result.weight = weight;
  }
  return _result;
}