SelectMenu<T> constructor
SelectMenu<T> (
- ComponentType _type,
- String _customId, {
- String? placeholder,
- int? minLength,
- int? maxLength,
- int? minValues,
- int? maxValues,
- bool? disabled,
- List<
SelectMenuOption< ? options,T> > - List<
Snowflake> ? defaultValues, - List<
ChannelType> ? channelTypes,
Implementation
SelectMenu(this._type, this._customId,
{String? placeholder,
int? minLength,
int? maxLength,
int? minValues,
int? maxValues,
bool? disabled,
List<SelectMenuOption<T>>? options,
List<Snowflake>? defaultValues,
List<ChannelType>? channelTypes})
: _placeholder = placeholder,
_minLength = minLength,
_maxLength = maxLength,
_minValues = minValues,
_maxValues = maxValues,
_disabled = disabled,
_options = options ?? [],
_defaultValues = defaultValues ?? [],
_channelTypes = channelTypes ?? [];