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 {
  return SpineBindings.bindings.spine_array_property_id_size(nativePtr.cast());
}
  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) {
  SpineBindings.bindings.spine_array_property_id_set_size(nativePtr.cast(), newLength, 0);
}