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_bounding_box_attachment_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_bounding_box_attachment_set_size(nativePtr.cast(), newLength, Pointer.fromAddress(0));
}