copyWith method
UpdateNewBusinessCallbackQuery
copyWith({
- int? id,
- int? senderUserId,
- String? connectionId,
- BusinessMessage? message,
- int? chatInstance,
- CallbackQueryPayload? payload,
- dynamic extra,
- int? clientId,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
UpdateNewBusinessCallbackQuery copyWith({
int? id,
int? senderUserId,
String? connectionId,
BusinessMessage? message,
int? chatInstance,
CallbackQueryPayload? payload,
dynamic extra,
int? clientId,
}) => UpdateNewBusinessCallbackQuery(
id: id ?? this.id,
senderUserId: senderUserId ?? this.senderUserId,
connectionId: connectionId ?? this.connectionId,
message: message ?? this.message,
chatInstance: chatInstance ?? this.chatInstance,
payload: payload ?? this.payload,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);