length property
Returns the number of elements in this collection.
Implementation
@override
int get length => _wrappedList.length;
Unsupported -- violated non-null constraint imposed by protobufs.
Changes the length of the list. If newLength is greater than the current
length, entries are initialized to null. Throws an
UnsupportedError if the list is not extendable.
Implementation
@override
set length(int newLength) {
if (newLength > length) {
throw UnsupportedError('Extending protobuf lists is not supported');
}
_wrappedList.length = newLength;
}