copyWith method
Implementation
PollOption copyWith({
String? text,
int? voterCount,
int? votePercentage,
bool? isChosen,
bool? isBeingChosen,
}) => PollOption(
text: text ?? this.text,
voterCount: voterCount ?? this.voterCount,
votePercentage: votePercentage ?? this.votePercentage,
isChosen: isChosen ?? this.isChosen,
isBeingChosen: isBeingChosen ?? this.isBeingChosen,
);