encodeAnimation method

  1. @override
List<int>? encodeAnimation(
  1. Animation anim
)
override

Encode an animation.

Implementation

@override
List<int>? encodeAnimation(Animation anim) {
  for (var f in anim) {
    addFrame(f, duration: f.duration);
  }
  return finish();
}