copyWith method

InlineKeyboardButton copyWith({
  1. String? text,
  2. int? iconCustomEmojiId,
  3. ButtonStyle? style,
  4. InlineKeyboardButtonType? type,
})

Implementation

InlineKeyboardButton copyWith({
  String? text,
  int? iconCustomEmojiId,
  ButtonStyle? style,
  InlineKeyboardButtonType? type,
}) => InlineKeyboardButton(
  text: text ?? this.text,
  iconCustomEmojiId: iconCustomEmojiId ?? this.iconCustomEmojiId,
  style: style ?? this.style,
  type: type ?? this.type,
);