addOption<T> method

void addOption<T>({
  1. required String label,
  2. String? description,
  3. required T value,
  4. 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));
}