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
ShareChatWithBot copyWith({
KeyboardButtonSource? source,
int? buttonId,
int? sharedChatId,
bool? onlyCheck,
}) => ShareChatWithBot(
source: source ?? this.source,
buttonId: buttonId ?? this.buttonId,
sharedChatId: sharedChatId ?? this.sharedChatId,
onlyCheck: onlyCheck ?? this.onlyCheck,
);