BottomButton class

Constructors

BottomButton(BottomButtonJSObject jsObject)

Properties

color Color?
Current button color. Set to themeParams.button_color by default.
no setter
hashCode int
The hash code for this object.
no setterinherited
isActive bool
Shows whether the button is active. Set to true by default.
no setter
isProgressVisible bool
Readonly. Shows whether the button is displaying a loading indicator.
no setter
isVisible bool
Shows whether the button is visible. Set to false by default.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Current button text. Set to CONTINUE by default.
no setter
textColor Color?
Current button text color. Set to themeParams.button_text_color by default.
no setter

Methods

disable() → void
A method to disable the button.
enable() → void
A method to enable the button.
hide() → void
A method to hide the button.
hideProgress() → void
A method to hide the loading indicator
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offClick(void callback()) → void
A method that removes the button press event handler.
onClick(void callback()) → void
A method that sets the button press event handler.
setParams(BottomButtonParams secondaryButtonParams) → void
A method to set the button parameters. The params parameter is an object containing one or several fields that need to be changed: text - button text; color - button color; text_color - button text color; is_active - enable the button; is_visible - show the button.
setText(String text) → void
A method to set the button text.
show() → void
A method to make the button visible. Note that opening the Mini App from the attachment menu hides the main button until the user interacts with the Mini App interface.
showProgress(bool leaveActive) → void
A method to show a loading indicator on the button. It is recommended to display loading progress if the action tied to the button may take a long time. By default, the button is disabled while the action is in progress. If the parameter leaveActive=true is passed, the button remains enabled.
toString() String
A string representation of this object.
inherited

Operators

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