copyWith method

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

Implementation

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