SelectMenu<T> constructor

SelectMenu<T>(
  1. ComponentType _type,
  2. String _customId, {
  3. String? placeholder,
  4. int? minLength,
  5. int? maxLength,
  6. int? minValues,
  7. int? maxValues,
  8. bool? disabled,
  9. List<SelectMenuOption<T>>? options,
  10. List<Snowflake>? defaultValues,
  11. 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 ?? [];