getAnimation method

EasyAnimaiton getAnimation(
  1. EasyShowOrHideStyle animationStyle
)

根据类型获取到处理动画的类

Implementation

EasyAnimaiton getAnimation(EasyShowOrHideStyle animationStyle) {
  switch (animationStyle) {
    case EasyShowOrHideStyle.fade:
      return defaultAnimation;
    case EasyShowOrHideStyle.size:
      return EasySizeAnimaiton();
    case EasyShowOrHideStyle.flip:
      return EasyFlipAnimaiton();
    default:
      return defaultAnimation;
  }
}