copyWith method

  1. @override
InputMessagePoll copyWith({
  1. String? question,
  2. List<String>? options,
  3. bool? isAnonymous,
  4. PollType? type,
  5. int? openPeriod,
  6. int? closeDate,
  7. 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,
    );