length property

  1. @override
int get length
override

The number of elements in this array. Must be implemented by subclasses to call the appropriate spine_array_*_get_size

Implementation

@override
int get length;
  1. @override
set length (int newLength)
override

Sets the length of the list. For read-only arrays, this will throw an UnsupportedError. Must be implemented by subclasses that support modification.

Implementation

@override
set length(int newLength) {
  throw UnsupportedError('This array is read-only');
}