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