MultiselectBuilder class

Allows to create multi select interactive components.

Inheritance

Constructors

MultiselectBuilder(String customId, [Iterable<MultiselectOptionBuilder>? options])
Creates instance of MultiselectBuilder

Properties

customId String
Id for the select menu; max 100 characters.
finalinherited
disabled bool?
Whether select menu is disabled (defaults to false).
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
maxValues int?
Maximum number of items that can be chosen (defaults to 1); max 25.
read / writeinherited
minValues int?
Minimum number of items that must be chosen (defaults to 1); min 0, max 25.
read / writeinherited
options List<MultiselectOptionBuilder>
Max: 25
final
placeholder String?
Placeholder text if nothing is selected; max 150 characters.
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type ComponentType
Type of component
read-only

Methods

addOption(MultiselectOptionBuilder builder) → void
Adds option to dropdown
build() Map<String, dynamic>
Returns built response for api
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited