copyWith method
Poll
copyWith(
{ - int? id,
- String? question,
- List<PollOption>? options,
- int? totalVoterCount,
- List<int>? recentVoterUserIds,
- bool? isAnonymous,
- PollType? type,
- int? openPeriod,
- int? closeDate,
- bool? isClosed,
})
Implementation
Poll copyWith({
int? id,
String? question,
List<PollOption>? options,
int? totalVoterCount,
List<int>? recentVoterUserIds,
bool? isAnonymous,
PollType? type,
int? openPeriod,
int? closeDate,
bool? isClosed,
}) => Poll(
id: id ?? this.id,
question: question ?? this.question,
options: options ?? this.options,
totalVoterCount: totalVoterCount ?? this.totalVoterCount,
recentVoterUserIds: recentVoterUserIds ?? this.recentVoterUserIds,
isAnonymous: isAnonymous ?? this.isAnonymous,
type: type ?? this.type,
openPeriod: openPeriod ?? this.openPeriod,
closeDate: closeDate ?? this.closeDate,
isClosed: isClosed ?? this.isClosed,
);