length property

int? get length

Implementation

int? get length => options.length;
set length (int? newLength)

Implementation

set length(int? newLength) {
  newLength ??= 0;
  while (options.length < newLength) {
    append(OptionElement());
  }
  while (options.length > newLength) {
    options.last.remove();
  }
}