copyWith method

PollVoters copyWith({
  1. int? totalCount,
  2. List<PollVoter>? voters,
})

Implementation

PollVoters copyWith({
  int? totalCount,
  List<PollVoter>? voters,
}) =>
    PollVoters(
      totalCount: totalCount ?? this.totalCount,
      voters: voters ?? this.voters,
    );