MultiselectBuilder constructor

MultiselectBuilder(
  1. String customId, [
  2. Iterable<MultiselectOptionBuilder>? options
])

Creates instance of MultiselectBuilder

Implementation

MultiselectBuilder(this.customId, [Iterable<MultiselectOptionBuilder>? options]) {
  if (this.customId.length > 100) {
    throw ArgumentError("Custom Id for Select cannot have more than 100 characters");
  }

  if (options != null) {
    this.options.addAll(options);
  }
}