copyWith method

PollOption copyWith({
  1. String? text,
  2. int? voterCount,
  3. int? votePercentage,
  4. bool? isChosen,
  5. bool? isBeingChosen,
})

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,
);