copyWith method
InputMessagePoll
copyWith({
- FormattedText? question,
- List<
InputPollOption> ? options, - FormattedText? description,
- InputPollMedia? media,
- bool? isAnonymous,
- bool? allowsMultipleAnswers,
- bool? allowsRevoting,
- bool? membersOnly,
- List<
String> ? countryCodes, - bool? shuffleOptions,
- bool? hideResultsUntilCloses,
- InputPollType? type,
- int? openPeriod,
- int? closeDate,
- bool? isClosed,
Implementation
InputMessagePoll copyWith({
FormattedText? question,
List<InputPollOption>? options,
FormattedText? description,
InputPollMedia? media,
bool? isAnonymous,
bool? allowsMultipleAnswers,
bool? allowsRevoting,
bool? membersOnly,
List<String>? countryCodes,
bool? shuffleOptions,
bool? hideResultsUntilCloses,
InputPollType? type,
int? openPeriod,
int? closeDate,
bool? isClosed,
}) => InputMessagePoll(
question: question ?? this.question,
options: options ?? this.options,
description: description ?? this.description,
media: media ?? this.media,
isAnonymous: isAnonymous ?? this.isAnonymous,
allowsMultipleAnswers: allowsMultipleAnswers ?? this.allowsMultipleAnswers,
allowsRevoting: allowsRevoting ?? this.allowsRevoting,
membersOnly: membersOnly ?? this.membersOnly,
countryCodes: countryCodes ?? this.countryCodes,
shuffleOptions: shuffleOptions ?? this.shuffleOptions,
hideResultsUntilCloses:
hideResultsUntilCloses ?? this.hideResultsUntilCloses,
type: type ?? this.type,
openPeriod: openPeriod ?? this.openPeriod,
closeDate: closeDate ?? this.closeDate,
isClosed: isClosed ?? this.isClosed,
);