Encode an animation. Not all formats support animation, and null will be returned if not.
List<int>? encodeAnimation(Animation anim) => null;