replaceAnimation method

Future<void> replaceAnimation(
  1. SimpleDirectionAnimation newAnimation
)

Implementation

Future<void> replaceAnimation(SimpleDirectionAnimation newAnimation) async {
  await newAnimation.onLoad();
  animation = newAnimation;
}