ArrayAnimation.withCapacity constructor
ArrayAnimation.withCapacity(
- int initialCapacity
Create a new array with the specified initial capacity
Implementation
factory ArrayAnimation.withCapacity(int initialCapacity) {
final ptr = SpineBindings.bindings.spine_array_animation_create_with_capacity(initialCapacity);
return ArrayAnimation.fromPointer(ptr.cast(), ownsMemory: true);
}