getOffset method
Implementation
Offset getOffset(animation) {
switch (variant) {
case NextSlideVariant.slideInTop:
return Offset(0, animation);
case NextSlideVariant.slideInBottom:
return Offset(0, animation);
case NextSlideVariant.slideInLeft:
case NextSlideVariant.slideInRight:
return Offset(animation, 0);
default:
return const Offset(0, 0);
}
}