getOffset method
Implementation
Offset getOffset(animation) {
switch (variant) {
case NextBounceVariant.bounceInTop:
case NextBounceVariant.bounceInBottom:
return Offset(0, animation);
case NextBounceVariant.bounceInLeft:
case NextBounceVariant.bounceInRight:
return Offset(animation, 0);
default:
return const Offset(0, 0);
}
}