calcMovement method
Implementation
calcMovement(double value) {
switch (animateDirection) {
case AnimateDirection.top:
return Offset(0, value);
case AnimateDirection.right:
return Offset(-value, 0);
case AnimateDirection.bottom:
return Offset(0, -value);
case AnimateDirection.left:
return Offset(value, 0);
case AnimateDirection.none:
throw Exception(
'AnimateDirection.none is not supported in SlideInAnimation.');
}
}