length property

num get length

Returns the number of elements in the collection.

When set to a smaller number, truncates the number of option elements in the corresponding container.

When set to a greater number, adds new blank option elements to that container.

MDN Reference

Implementation

_i2.num get length => _i4.getProperty(
      this,
      'length',
    );
set length (num value)

Implementation

set length(_i2.num value) {
  _i4.setProperty(
    this,
    'length',
    value,
  );
}