getAnimationSequence method
Implementation
MultiAnimationSequence getAnimationSequence() {
SmoothMatrix4 transform = SmoothMatrix4();
switch (direction) {
case Axis.vertical:
transform.rotateY(angle);
break;
case Axis.horizontal:
transform.rotateX(angle);
break;
}
return MultiAnimationSequence(control: control, sequences: {
AnimationProperty.transform: AnimationSequence<SmoothMatrix4>()
..add(value: transform, duration: duration, delay: delay, curve: curve),
});
}