copyWith method
Implementation
Poll<T> copyWith({
String? title,
List<PollOption<T>>? options,
DateTime? endsAt,
bool? allowsMultipleAnswers,
bool? isEditable,
}) {
return Poll<T>(
title: title ?? this.title,
options: options ?? this.options,
endsAt: endsAt ?? this.endsAt,
allowsMultipleAnswers:
allowsMultipleAnswers ?? this.allowsMultipleAnswers,
isEditable: isEditable ?? this.isEditable,
);
}