copyWith method

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

Implementation

Votes copyWith(
    {bool? hasVoted, String? self, List<User>? voters, int? votes}) {
  return Votes(
    hasVoted: hasVoted ?? this.hasVoted,
    self: self ?? this.self,
    voters: voters ?? this.voters,
    votes: votes ?? this.votes,
  );
}