awaitSelection<T> abstract method
Future<SelectMenuContext<T> >
awaitSelection<T>(
- ComponentId componentId, {
- Converter<
T> ? converterOverride,
Wait for a user to select a single option from a multi-select menu and return a context representing that selection.
Will throw a StateError if more than one option is selected (for example, from a multi-select menu allowing more than one choice).
Implementation
Future<SelectMenuContext<T>> awaitSelection<T>(
ComponentId componentId, {
Converter<T>? converterOverride,
});