KeyboardButton constructor

const KeyboardButton({
  1. required String text,
  2. required KeyboardButtonType type,
})

Represents a single button in a bot keyboard

Implementation

const KeyboardButton({
  required this.text,
  required this.type,
});