copyWith method
InputMessagePoll
copyWith({
- String? question,
- List<
String> ? options, - bool? isAnonymous,
- PollType? type,
- int? openPeriod,
- int? closeDate,
- bool? isClosed,
override
Implementation
@override
InputMessagePoll copyWith({
String? question,
List<String>? options,
bool? isAnonymous,
PollType? type,
int? openPeriod,
int? closeDate,
bool? isClosed,
}) => InputMessagePoll(
question: question ?? this.question,
options: options ?? this.options,
isAnonymous: isAnonymous ?? this.isAnonymous,
type: type ?? this.type,
openPeriod: openPeriod ?? this.openPeriod,
closeDate: closeDate ?? this.closeDate,
isClosed: isClosed ?? this.isClosed,
);