Animation constructor

Animation(
  1. String name
)

Creates a new animation. The timelines must be set before use.

Implementation

factory Animation(String name) {
  final ptr = SpineBindings.bindings.spine_animation_create(name.toNativeUtf8().cast<Char>());
  return Animation.fromPointer(ptr);
}