copyWith method

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

Implementation

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