copyWith method

AnswerInlineQuery copyWith({
  1. int? inlineQueryId,
  2. bool? isPersonal,
  3. InlineQueryResultsButton? button,
  4. List<InputInlineQueryResult>? results,
  5. int? cacheTime,
  6. String? nextOffset,
})

Implementation

AnswerInlineQuery copyWith({
  int? inlineQueryId,
  bool? isPersonal,
  InlineQueryResultsButton? button,
  List<InputInlineQueryResult>? results,
  int? cacheTime,
  String? nextOffset,
}) =>
    AnswerInlineQuery(
      inlineQueryId: inlineQueryId ?? this.inlineQueryId,
      isPersonal: isPersonal ?? this.isPersonal,
      button: button ?? this.button,
      results: results ?? this.results,
      cacheTime: cacheTime ?? this.cacheTime,
      nextOffset: nextOffset ?? this.nextOffset,
    );