copyWith method

InlineKeyboardButtonTypeSwitchInline copyWith({
  1. String? query,
  2. TargetChat? targetChat,
})

Implementation

InlineKeyboardButtonTypeSwitchInline copyWith({
  String? query,
  TargetChat? targetChat,
}) =>
    InlineKeyboardButtonTypeSwitchInline(
      query: query ?? this.query,
      targetChat: targetChat ?? this.targetChat,
    );