copyWith method

InputMessagePoll copyWith({
  1. FormattedText? question,
  2. List<InputPollOption>? options,
  3. FormattedText? description,
  4. InputPollMedia? media,
  5. bool? isAnonymous,
  6. bool? allowsMultipleAnswers,
  7. bool? allowsRevoting,
  8. bool? membersOnly,
  9. List<String>? countryCodes,
  10. bool? shuffleOptions,
  11. bool? hideResultsUntilCloses,
  12. InputPollType? type,
  13. int? openPeriod,
  14. int? closeDate,
  15. 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,
    );