copyWith method
AnswerInlineQuery
copyWith({
- int? inlineQueryId,
- bool? isPersonal,
- InlineQueryResultsButton? button()?,
- List<
InputInlineQueryResult> ? results, - int? cacheTime,
- String? nextOffset,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
AnswerInlineQuery copyWith({
int? inlineQueryId,
bool? isPersonal,
InlineQueryResultsButton? Function()? button,
List<InputInlineQueryResult>? results,
int? cacheTime,
String? nextOffset,
}) =>
AnswerInlineQuery(
inlineQueryId: inlineQueryId ?? this.inlineQueryId,
isPersonal: isPersonal ?? this.isPersonal,
button: button != null ? button() : this.button,
results: results ?? this.results,
cacheTime: cacheTime ?? this.cacheTime,
nextOffset: nextOffset ?? this.nextOffset,
);