copyWith method
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,
);
}