copyWith method

FeatureModel copyWith({
  1. String? id,
  2. bool? isVoted,
  3. int? voteCount,
})

Implementation

FeatureModel copyWith({String? id, bool? isVoted, int? voteCount}) {
  return FeatureModel(
    id: id ?? this.id,
    title: title,
    description: description,
    voteCount: voteCount ?? this.voteCount,
    status: status,
    publicNote: publicNote,
    isVoted: isVoted ?? this.isVoted,
  );
}