copyWith method

KeyboardButton copyWith({
  1. String? text,
  2. KeyboardButtonType? type,
})

Implementation

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