ButtonBuilder class Null safety
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.
read / write
- disabled ↔ bool
-
True if emoji is disabled
read / write, inherited
- emoji ↔ IEmoji?
-
Additional emoji for button
read / write, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- label → String
-
Label for button. Max 80 characters.
final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- style → ButtonStyle
-
Style of button. See ButtonStyle
final, inherited
- type → ComponentType
-
Type of component
read-only, inherited
Methods
-
build(
) → RawApiMap - Returns built response for api
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited