MultiselectBuilder class

Allows to create multi select interactive components.

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).
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
maxValues int?
Maximum number of items that can be chosen (defaults to 1); max 25.
getter/setter pairinherited
minValues int?
Minimum number of items that must be chosen (defaults to 1); min 0, max 25.
getter/setter pairinherited
options List<MultiselectOptionBuilder>
Max: 25
final
placeholder String?
Placeholder text if nothing is selected; max 150 characters.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type → ComponentType
Type of component
no setter

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