addOption<T> method
void
addOption<T>({
- required String label,
- String? description,
- required T value,
- EmojiBuilder? emoji,
The list of SelectMenuOption that can be selected.
Implementation
void addOption<T> ({ required String label, String? description, required T value, EmojiBuilder? emoji }) {
_options.add(SelectMenuOption(label: label, description: description, value: value, emoji: emoji));
}