VkDartKeyboard class

Model Keyboard. Create a button:

VkDartKeyboard()..addButtonText('Hello world!');

Using Keyboard:

vkdart.messages.send({
  ...,
  'keyboard': keyboard.toJson()
});

keyboard - instance VkDartKeyboard

Constructors

VkDartKeyboard({bool oneTime = true, bool inline = false, List<List<Map<String, dynamic>>>? buttons})

Properties

buttons List<List<Map<String, dynamic>>>
latefinal
hashCode int
The hash code for this object.
no setterinherited
inline bool
true — the keyboard is displayed inside the message. false — shows the keyboard in the dialog, under the message input field.
final
oneTime bool
Whether to hide the keyboard after pressing the key that sends the message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addButtonApp(int appId, int ownerId, {String? hash, String? appName, Map<String, dynamic>? payload}) → void
Adds an open app button.
addButtonCallback(String text, {VkDartKeyboardColor color = VkDartKeyboardColor.secondary, Map<String, dynamic>? payload}) → void
Adds a callback button.
Adds a link key.
addButtonLocation({Map<String, dynamic>? payload}) → void
Adds a localized button.
addButtonText(String text, {VkDartKeyboardColor color = VkDartKeyboardColor.secondary, Map<String, dynamic>? payload}) → void
Adds a text button.
addButtonVkPay(String hash, {Map<String, dynamic>? payload}) → void
Adds a VK Pay button.
nextRow() → void
Moves to the next row of the table.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an object of the class to Json.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited