getAnimationSequence method
Implementation
MultiAnimationSequence getAnimationSequence() {
SmoothMatrix4 transform = SmoothMatrix4();
transform.scale(scale);
Duration halfDuration =
Duration(milliseconds: (duration.inMilliseconds / 2).round());
return MultiAnimationSequence(control: control, sequences: {
AnimationProperty.transform: AnimationSequence<SmoothMatrix4>()
..add(
value: transform,
duration: halfDuration,
delay: delay,
curve: curve)
..add(value: SmoothMatrix4(), duration: halfDuration, curve: curve),
});
}