addSelectChoice method
Adds a static choice, assigning its index.
Implementation
void addSelectChoice(SelectChoice choice) {
final choices = _choices ??= [];
choice.index = choices.length;
choices.add(choice);
}
Adds a static choice, assigning its index.
void addSelectChoice(SelectChoice choice) {
final choices = _choices ??= [];
choice.index = choices.length;
choices.add(choice);
}