KeyboardBuilder class
Keyboard builder
Constructors
- KeyboardBuilder({bool isOneTime = false, bool isInline = false})
- Usage
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applicationButton(
{required String label, required int appId, required int ownerId, String? hash}) → KeyboardBuilder - VK Apps button, occupies the entire keyboard width
-
callbackButton(
{required String label, _Button payload = const {}, Color color = Color.SECONDARY}) → KeyboardBuilder - Allows without sending a message from the user to receive a notification of a button click and perform the necessary action
-
clone(
) → KeyboardBuilder - Clones the builder with all the settings
-
inline(
[bool enable = true]) → KeyboardBuilder - Sets the keyboard inline
-
locationRequestButton(
{_Button payload = const {}}) → KeyboardBuilder - User location request button, occupies the entire keyboard width
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
oneTime(
[bool enable = true]) → KeyboardBuilder - Sets the keyboard to close after pressing
-
payButton<
T> ({required T hash}) → KeyboardBuilder - VK Pay button, occupies the entire keyboard width
-
row(
) → KeyboardBuilder - Saves the current row of buttons in the general rows
-
textButton(
{required String label, Color color = Color.SECONDARY, _Button payload = const {}}) → KeyboardBuilder - Text button, can be colored
-
toString(
) → String -
Returns a string to keyboard a VK
override
-
urlButton(
{required String label, required String url, _Button payload = const {}}) → KeyboardBuilder - URL button
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited