copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
AnswerCallbackQuery copyWith({
int? callbackQueryId,
String? text,
bool? showAlert,
String? url,
int? cacheTime,
}) =>
AnswerCallbackQuery(
callbackQueryId: callbackQueryId ?? this.callbackQueryId,
text: text ?? this.text,
showAlert: showAlert ?? this.showAlert,
url: url ?? this.url,
cacheTime: cacheTime ?? this.cacheTime,
);