ButtonBuilder class
Button which will generate event when clicked.
Constructors
- ButtonBuilder(String label, String customId, ButtonStyle style, {bool disabled = false, IEmoji? emoji})
- Creates instance of ButtonBuilder
Properties
- customId ↔ String
-
Id with optional additional metadata for button.
getter/setter pair
- disabled ↔ bool
-
True if emoji is disabled
getter/setter pairinherited
- emoji ↔ IEmoji?
-
Additional emoji for button
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
Label for button. Max 80 characters.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → ButtonStyle
-
Style of button. See
ButtonStyle
finalinherited - type → ComponentType
-
Type of component
no setterinherited
Methods
-
build(
) → RawApiMap - Returns built response for api
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited