size method

Select size(
  1. int number, {
  2. bool? removeIf,
})

If the control is presented as a scrolling list box (e.g. when multiple is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. Read more...

Implementation

Select size(int number, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('size', number.toString());
    node.attrs!.add(attr);
  }
  return this;
}