add method
Adds a Inline Keyboard Button with given text
and data
to the current
row.
Implementation
InlineKeyboard add(String text, String data) {
final newKeyboard = [...inlineKeyboard];
newKeyboard.last = [
...newKeyboard.last,
InlineKeyboardButton(
text: text,
callbackData: data,
),
];
return InlineKeyboard(inlineKeyboard: newKeyboard);
}