The number of boolean values in this list.
The valid indices for a list are
length - 1.
If the list is growable, setting the length will change the
number of values.
Setting the length to a smaller number will remove all
values with indices greater than or equal to the new length.
Setting the length to a larger number will increase the number of
values, and all the new values will be
@override int get length => _length;
length changes the number of elements in the list.
The list must be growable.
newLength is greater than current length,
new entries are initialized to
newLength must not be greater than the current length
if the element type
E is non-nullable.
final maybeNumbers = <int?>[1, null, 3]; maybeNumbers.length = 5; print(maybeNumbers); // [1, null, 3, null, null] maybeNumbers.length = 2; print(maybeNumbers); // [1, null] final numbers = <int>[1, 2, 3]; numbers.length = 1; print(numbers); //  numbers.length = 5; // Throws, cannot add `null`s.
set length(int newLength);