ButtonBuilder class

ButtonBuilder component

Constructors

ButtonBuilder(String? customId, {String? label, ButtonStyle style = ButtonStyle.primary, EmojiBuilder? emoji, bool disabled = false, String? url})

Properties

customId String?
Gets the custom id of this
getter/setter pair
disabled bool
Gets the disabled state of this
getter/setter pair
emoji EmojiBuilder?
Gets the EmojiBuilder of this
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
label String?
Gets the label of this
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style ButtonStyle
Gets the ButtonStyle of this
getter/setter pair
type ↔ ComponentType?
getter/setter pairinherited
url String?
Gets the url of this
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDisabled(bool value) → void
Sets the disabled state of this
setEmoji(EmojiBuilder? value) → void
Sets the emoji of this
setLabel(String value) → void
Sets the label of this
setStyle(ButtonStyle value) → void
Sets the style of this
setUrl(String value) → void
Sets the url of this
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

button(String customId, {String? label, ButtonStyle style = ButtonStyle.primary, EmojiBuilder? emoji, bool disabled = false}) → ClickableButton
Create a basic button with dedicated properties
Create a link button with dedicated properties