DynamicSelectMenuBuilder class

A builder for dynamic select menus component.

Constructors

DynamicSelectMenuBuilder(String customId)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ↔ ComponentType?
getter/setter pairinherited

Methods

addOption<T>({required String label, String? description, required T value, EmojiBuilder? emoji}) → void
The list of SelectMenuOption that can be selected.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDisabled(bool value) → void
Sets the disabled state of the menu.
inherited
setMaxValues(int value) → void
Sets the maximum number of items that can be chosen; default 1, max 25.
inherited
setMinValues(int value) → void
Sets the minimum number of items that must be chosen; default 1, min 0, max 25.
inherited
setPlaceholder(String value) → void
Sets the placeholder text shown on the menu.
inherited
toJson() Map<String, dynamic>
Serialize this component to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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