Votes constructor

Votes({
  1. bool? hasVoted,
  2. String? self,
  3. List<User>? voters,
  4. int? votes,
})

Implementation

Votes({bool? hasVoted, this.self, List<User>? voters, this.votes})
    : hasVoted = hasVoted ?? false,
      voters = voters ?? [];