copyWith method

ShareChatWithBot copyWith({
  1. KeyboardButtonSource? source,
  2. int? buttonId,
  3. int? sharedChatId,
  4. bool? onlyCheck,
})

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,
);