copyWith method

InlineQueryResults copyWith({
  1. int? inlineQueryId,
  2. String? nextOffset,
  3. List<InlineQueryResult>? results,
  4. String? switchPmText,
  5. String? switchPmParameter,
  6. dynamic extra,
  7. int? clientId,
})

Implementation

InlineQueryResults copyWith({
  int? inlineQueryId,
  String? nextOffset,
  List<InlineQueryResult>? results,
  String? switchPmText,
  String? switchPmParameter,
  dynamic extra,
  int? clientId,
}) => InlineQueryResults(
  inlineQueryId: inlineQueryId ?? this.inlineQueryId,
  nextOffset: nextOffset ?? this.nextOffset,
  results: results ?? this.results,
  switchPmText: switchPmText ?? this.switchPmText,
  switchPmParameter: switchPmParameter ?? this.switchPmParameter,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);