getOffset method
Implementation
Offset getOffset(animation) {
switch (variant) {
case NextFadeOutVariant.fadeOutTop:
case NextFadeOutVariant.fadeOutBottom:
return Offset(0, animation);
case NextFadeOutVariant.fadeOutLeft:
case NextFadeOutVariant.fadeOutRight:
return Offset(animation, 0);
default:
return const Offset(0, 0);
}
}